[geeks] getting CPU status in FreeBSD

Charles Shannon Hendrix shannon at widomaker.com
Thu Sep 13 12:49:09 CDT 2007


Does anyone know of a decent routine to get the CPU stats under FreeBSD?

I basically just want a function that returns 0-100 for each CPU in the
system so I can print the results to an LCD.

I'm trying to dig this information out of top sources, but it's a real
hairball, so I'm looking for something easier if I can find it.

-- 
shannon           | An Irishman is never drunk as long as he can hold onto 
                  | one blade of grass and not fall off the face of the earth.



More information about the geeks mailing list