>They shouldn't need to be massaged. Just sample the values at two intervals, >and your percentages can be calculated by dividing >each delta by the sum of the deltas (since the sum equals the total CPU usage >over the interval, by definition). If you want to >calculate per-cpu usage, use the kern.cp_times sysctl instead.
That's the detail I was missing, needing to take two samples. That should solve the problem I was having. Thanks. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"