Commit 4b4e692
committed
fix(unraid): report correct CPU utilization on hyper-threaded systems
The Unraid integration summed the per-thread CPU percentages and divided
the total by the number of physical cores. On hyper-threaded systems there
are more logical CPUs (threads) than physical cores, so the result was
inflated — roughly doubled — and could even exceed 100% (e.g. a real 43%
load reported as ~93%).
Use the overall CPU utilization the Unraid API already reports
(`metrics.cpu.percentTotal`, 0-100), which is the value Unraid itself
displays, instead of recomputing it from the per-thread percentages.
Closes #60821 parent 260b167 commit 4b4e692
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments