From: rbutterw@math.uwaterloo.ca (Ray Butterworth [MFCF])
Subject: DEC ALPHA OSF1 V1.2, <sys/param.h>, FSCALE, and loadaverages.
Date: Fri, 3 Sep 1993 17:11:43 GMT [thread overview]
Message-ID: <CCsFrK.314@math.uwaterloo.ca> (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?
reply other threads:[~1993-09-03 17:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox