This PR improves the reading CPU times from /proc/stat and the calculations we perform on them.
The issue
The CPU times weren't accurate as it didn't read all the values and
didn't consider them in the calculations. Looking at htop we see a lot
more work has to be done for user, nice and total times.
This PR improves the reading CPU times from
/proc/stat
and the calculations we perform on them.The issue
The CPU times weren't accurate as it didn't read all the values and didn't consider them in the calculations. Looking at htop we see a lot more work has to be done for user, nice and total times.
man proc
, the/proc/stat
subjectRelated issues