Results 1 to 1 of 1
Hi,
I want to make some kind of monitor for my PC and i want to have CPU load in form like "top" (something% , ex 23%).
So i use ...
- 01-12-2008 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 5
About /proc/stat ???
Hi,
I want to make some kind of monitor for my PC and i want to have CPU load in form like "top" (something% , ex 23%).
So i use C and : i'm opening the file /proc/stat and read the first line :
cpu 92208 2282668 19432 79824 739 1441 3304
the first is user, nice , system ...
So does anyone knows how this things can show me the percentage of CPU usage like "top" does?
thanks


Reply With Quote