In the last episode (Jan 09), kamal kc said: > dear everybody, > > i want to use the routine get_system_info() to get the load averages > of the cpu. i found it that top uses it.
get_system_info is just a function /in/ top itself that gets the CPU usage. It uses the vm.loadavg sysctl to get the load average. A simpler way is to just call the getloadavg() function; see its manpage for more info. -- Dan Nelson [EMAIL PROTECTED] _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"