Nicolai Petri Secure <[EMAIL PROTECTED]> writes:
> I'm currently programming a screensaver the shows statistics (cpu load and
> stuff) but the interface for doing it in kernel mode sucks.. What is the
> right way to do it ?

Check out the sysctl(8) source to see how it special-cases vm.loadavg;
find out where the data comes from (search the kernel source for the
string 'loadavg') and figure out a way to do the math without using
floating-point (which doesn't work in the kernel).

> And would the screensaver be subject for entering the main source tree ?

Yes.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to