aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-09-23 20:41:16 +0000
committerMark Kettenis <kettenis@gnu.org>2000-09-23 20:41:16 +0000
commit96e26332f34cc24f2ba9a456d3fd865479ce481a (patch)
tree068869064d5f123678a0999a2e036226e4bdc707 /sysdeps
parentcea9aac06054a899d606114b799694a969b96840 (diff)
downloadglibc-96e26332f34cc24f2ba9a456d3fd865479ce481a.zip
glibc-96e26332f34cc24f2ba9a456d3fd865479ce481a.tar.gz
glibc-96e26332f34cc24f2ba9a456d3fd865479ce481a.tar.bz2
* sysdeps/mach/getloadavg.c (getloadavg): Divide instead of multiply by LOAD_SCALE.
2000-09-11 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of multiply by LOAD_SCALE.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/getloadavg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/getloadavg.c b/sysdeps/mach/getloadavg.c
index b185b6b..30a196b 100644
--- a/sysdeps/mach/getloadavg.c
+++ b/sysdeps/mach/getloadavg.c
@@ -1,5 +1,5 @@
/* Get system load averages. Mach version.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -48,7 +48,7 @@ getloadavg (double loadavg[], int nelem)
if (nelem > 3)
nelem = 3;
for (i = 0; i < nelem; ++i)
- loadavg[i] = (double) info.avenrun[i] * (double) LOAD_SCALE;
+ loadavg[i] = (double) info.avenrun[i] / (double) LOAD_SCALE;
return i;
}