* DEC ALPHA OSF1 V1.2, <sys/param.h>, FSCALE, and loadaverages.
@ 1993-09-03 17:11 Ray Butterworth [MFCF]
0 siblings, 0 replies; only message in thread
From: Ray Butterworth [MFCF] @ 1993-09-03 17:11 UTC (permalink / raw)
When our software computes load averages, the values are slightly
less than half those produced by the stock "uptime" command.
Before printing them we were taking the values read from kmem
and dividing them by FSCALE, which is defined in <sys/param.h>.
But if we put this in our source:
#undef FSCALE /* was 2048 in <sys/param.h> */
#define FSCALE 1000 /* this gives results like "uptime"'s */
our software gives the same values as "uptime".
So, is FSCALE defined incorrectly in <sys/param.h>,
or is there some other way we should be doing this,
or is uptime actually reporting the wrong values?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-09-03 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-03 17:11 DEC ALPHA OSF1 V1.2, <sys/param.h>, FSCALE, and loadaverages Ray Butterworth [MFCF]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox