Commit b101fb3
authored
fix: linux process cpu usage under-reported when vm guests active (#1609)
The Linux /proc/stat fields "guest" and "guest_nice" are already
included in "user" and "nice". In Proc::collect do like Cpu::collect
does and don't double count them. The double-counting caused the CPU
usage denominator to be too large when VM guests were active, causing
the reported CPU usage percentages of all processes to be too small.
Closes: #16081 parent 6462ebc commit b101fb3
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2989 | 2989 | | |
2990 | 2990 | | |
2991 | 2991 | | |
2992 | | - | |
| 2992 | + | |
2993 | 2993 | | |
2994 | 2994 | | |
2995 | 2995 | | |
2996 | 2996 | | |
2997 | | - | |
| 2997 | + | |
| 2998 | + | |
2998 | 2999 | | |
2999 | 3000 | | |
3000 | 3001 | | |
| |||
0 commit comments