appsignal / probes-rs

Rust library to read out system stats from a machine running Unix
MIT License
15 stars 2 forks source link

Calculate CPU times more accurately #23

Closed tombruijn closed 8 years ago

tombruijn commented 8 years ago

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.

thijsc commented 8 years ago

👍