Re: CPU activity as percentage.

看板FB_hackers作者時間18年前 (2007/08/13 14:38), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
On 04/08/07, Peter Jeremy <peterjeremy@optushome.com.au> wrote: > On 2007-Aug-04 08:10:13 +0100, mal content <artifact.one@googlemail.com> 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. *ahem* That would explain it then. thanks, MC _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16l_nf00 (FB_hackers)
文章代碼(AID): #16l_nf00 (FB_hackers)