comparison src/getloadavg.c @ 13882:2631a29a614c

(getloadavg) [MSDOS]: Return 0 load instead of failing the call.
author Richard M. Stallman <rms@gnu.org>
date Thu, 28 Dec 1995 23:28:35 +0000
parents a252e42dabcc
children faef0869994d
comparison
equal deleted inserted replaced
13881:15e38bb8df9c 13882:2631a29a614c
729 loadavg[elem++] 729 loadavg[elem++]
730 = (load_ave.tl_lscale == 0 730 = (load_ave.tl_lscale == 0
731 ? load_ave.tl_avenrun.d[0] 731 ? load_ave.tl_avenrun.d[0]
732 : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale)); 732 : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale));
733 #endif /* OSF_MIPS */ 733 #endif /* OSF_MIPS */
734
735 #if !defined (LDAV_DONE) && defined(MSDOS)
736 #define LDAV_DONE
737
738 /* A faithful emulation is going to have to be saved for a rainy day. */
739 for ( ; elem < nelem; elem++)
740 {
741 loadavg[elem] = 0.0;
742 }
743 #endif /* MSDOS */
734 744
735 #if !defined (LDAV_DONE) && defined (OSF_ALPHA) 745 #if !defined (LDAV_DONE) && defined (OSF_ALPHA)
736 #define LDAV_DONE 746 #define LDAV_DONE
737 747
738 struct tbl_loadavg load_ave; 748 struct tbl_loadavg load_ave;