htop
htop copied to clipboard
LoadAverage-bar scaling
Hi, I'm set the top of the LoadAverage-bar to the #CPUs. Top @ 100 make no sense. And I switched off automatical upscaling. Future feature request might be upscale the load average as needed and when it decreases downscale it slower to the #CPUs. Lukas
PS: I fixed one misc.
In a heavily loaded system, sometimes the load averages are much higher than the number of CPUs. 100 is too much, indeed, but on the other hand, setting the bar to 1 for a single-processor machine is too low. Maybe something like 5*cpus is reasonable...
Ok, what do you think about this improvement:
- to make a bar max value dynamically adjustable.
- start with value 1 per CPU
- if load is higher than max bar value, set up the max bar value to the load
- in the opposite case (when max value > #CPU) decrease max bar value by say 1% ?
- to distinguish between overloaded system and not overloaded system draw bar by '|' bellow #CPU and the rest of the bar by 'X' or '~', or unicode '☹', or by an another character.