On 2007-Aug-04 08:10:13 +0100, mal content <[EMAIL PROTECTED]> wrote:
>  if (sysctlbyname("kern.cp_time", cp_time, &len, 0, 0) < 0) return 0;

kern.cp_time returns a set of counters that are incrememted at
kern.clockrate{stathz}.  To calculate CPU activity, you need to look
at the change in counters over a defined period.

-- 
Peter Jeremy

Attachment: pgpzdutJbUl9D.pgp
Description: PGP signature

Reply via email to