Closed yangxi closed 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.
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.