mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-27 23:06:53 +00:00
(getloadavg) [MSDOS]: Return 0 load instead of failing the call.
This commit is contained in:
parent
17aef36902
commit
21fed1fbcc
1 changed files with 10 additions and 0 deletions
10
getloadavg.c
10
getloadavg.c
|
@ -732,6 +732,16 @@ getloadavg (loadavg, nelem)
|
|||
: (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
|
||||
|
||||
|
|
Loading…
Reference in a new issue