iopsystems / rezolus

Systems performance telemetry
Other
50 stars 8 forks source link

Update the index of CPU usage counters to match cpu_usage_stat #236

Closed yangxi closed 4 months ago

yangxi commented 4 months ago

The cpu_usage_stat index is different to the order in /proc/stat. This PR updates the index.

Both of CPUTIME_IDLE and CPUTIME_IOWAIT are idle time, so ignore both of them in counting.