jbryans@beach.csulb.edu (Jack Bryans) (04/04/91)
Our NeXT's sys/table.h has the following lines that comments indicate
originated at CMU:
/*
* TBL_LOADAVG data layout
* (used by TBL_MACHFACTOR too)
*/
struct tbl_loadavg
{
long tl_avenrun[3];
int tl_lscale; /* 0 scale when floating point */
};
In addition, sys/param.h has the usual FSHIFT & FSCALE defs. I've used gdb to
bag the 3 longs & the "scale" int, find that they correlate w/the averages
printed by uptime, but haven't found a function of tl_avenrun and tl_lscale,
with or without FSCALE that agrees with uptime.
When, if ever, can the tl_avenrun's be floating point?
Jack