Mercurial > emacs
changeset 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 | 15e38bb8df9c |
children | a4eef7470b6b |
files | src/getloadavg.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/getloadavg.c Thu Dec 28 23:14:23 1995 +0000 +++ b/src/getloadavg.c Thu Dec 28 23:28:35 1995 +0000 @@ -732,6 +732,16 @@ : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale)); #endif /* OSF_MIPS */ +#if !defined (LDAV_DONE) && defined(MSDOS) +#define LDAV_DONE + + /* A faithful emulation is going to have to be saved for a rainy day. */ + for ( ; elem < nelem; elem++) + { + loadavg[elem] = 0.0; + } +#endif /* MSDOS */ + #if !defined (LDAV_DONE) && defined (OSF_ALPHA) #define LDAV_DONE