_avenrun kernel variable

Nick Lawes nick at qtnet.uucp
Thu Jul 20 03:07:05 AEST 1989


>From article <1554 at ethz.UUCP>, by ms at ethz.UUCP (Martin Steinmann ):
> To get the load widget of the X Athena Widget Set running, I should
> know what type the variable ``_avenrun'' in Xenix is.
>  
> Can anybody help ?
> 
> Dave.

I found the following mostly by trial and error, but it does agree with
the `w' command...

Avenrun is an array of three shorts. These represent (I believe) the load
average over the last 1, 5, and 10 minutes. Divide the required short by
256.0 to get the load average.

-- Nick
--
[     Nick Lawes, Systems Programmer     | voice:       +44 1 353 6723    ]
[ Technical Marketing, Quotnet (UK) Ltd. | email:     nick at quotnet.co.uk  ]
[  12 Norwich Street, London.  EC4a 1BP  | email: ..!mcvax!ukc!qtnet!nick ]
[                                        | ham  :       G8ZHR @ GB7UWS    ]

-- 
[     Nick Lawes, Systems Programmer     | voice:       +44 1 353 6723    ]
[ Technical Marketing, Quotnet (UK) Ltd. | email:     nick at quotnet.co.uk  ]
[  12 Norwich Street, London.  EC4a 1BP  | email: ..!mcvax!ukc!qtnet!nick ]
[                                        | ham  :       G8ZHR @ GB7UWS    ]



More information about the Comp.unix.xenix mailing list