Commit Graph
2 Commits
Author SHA1 Message Date
nicolargo e02a45faf5 Mark shebang-carrying test files as executable 2026-09-05 10:35:58 +02:00
Nguyen Thanh Dat 294fefe3db fix(percpu): summarize the cores that are not displayed, not the ones that are
`summarize_all_cpus_not_displayed` sliced `percpu_list[0 : max_cpu_display]` —
the exact slice `msg_curse` has just printed one line above. So the CPU* row
averaged the cores already on screen instead of the ones that did not fit.

`manage_max_cpu_to_display` sorts by total descending whenever the list
overflows, so the displayed slice is the busiest cores. On an 8-core box showing
4, with four cores at ~87% and four idle at 2%, the CPU* row read 87.0% — a
figure for cores the user can already see, and 43x the load of the group it
claims to represent. The busier the top cores, the more misleading the summary.

Slices the tail instead, so the displayed slice and the summarized slice
partition the list.
2026-08-26 14:39:33 +07:00