Hello,
I just finished to port zyd(4) from NetBSD for FreeBSD and it works well in my
environment without any panic ;-) (In zb1211b, RF AL2230, open auth, 54M). But
It's not perfect and not be tested on another RF controllers and not on zb1211.
IMO, it would work too.
A patch which is for CU
On 04/08/07, Peter Jeremy <[EMAIL PROTECTED]> wrote:
> 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 cal
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 counter
Hello.
I'm trying to write a function sys_cpu_percent() that
returns the current cpu usage as a percentage. I currently
have this:
double sys_cpu_percent()
{
long cp_time[CPUSTATES];
double used;
double total;
size_t len = sizeof(cp_time);
if (sysctlbyname("kern.cp_time", cp_time, &len
4 matches
Mail list logo