htop/linux
Kumar 0af08bcfc9 Process: Display single digit precision for CPU% greater than 99.9%
Since commit edf319e[1], we're dynamically adjusting column width of
"CPU%", showing single digit precision also for values greater than
"99.9%" makes "CPU%" column consistent with all other values.

[1]: edf319e53d

Change "Process_printPercentage()" function's logic to always display
value (i.e. "val") with single precision. Except when value is greater
than "99.9%" for columns like "MEM%", whose width is fixed to "4" and
value cannot go beyond "100%".

Credits: @Explorer09, thanks for the patch[2] to fix title alignment
         issue.

[2]: https://github.com/htop-dev/htop/pull/959#issuecomment-1092480951

Closes: #957
2022-05-26 15:03:39 +02:00
..
CGroupUtils.c Skip system slice name 2022-03-06 19:56:25 +01:00
CGroupUtils.h Extract string writing/buffer handling into some callback 2021-11-28 20:19:10 +01:00
HugePageMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
HugePageMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriority.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriorityPanel.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriorityPanel.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
LibSensors.c IWYU update 2021-08-25 09:54:30 +02:00
LibSensors.h IWYU update 2021-08-25 09:54:30 +02:00
LinuxProcess.c Process: Display single digit precision for CPU% greater than 99.9% 2022-05-26 15:03:39 +02:00
LinuxProcess.h Compress cgroup names based on some heuristics 2021-11-28 20:19:10 +01:00
LinuxProcessList.c Merge branch 'lxc-cpu-count-fix' of fasterit/htop 2022-05-17 19:10:40 +02:00
LinuxProcessList.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
Platform.c fix container detection for LXC 2022-05-08 21:46:53 +03:00
Platform.h LXC: Limit CPU count to what is given in /proc/cpuinfo despite the container seeing the real host CPUs 2022-05-04 18:21:41 +02:00
PressureStallMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PressureStallMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
ProcessField.h Compress cgroup names based on some heuristics 2021-11-28 20:19:10 +01:00
SELinuxMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SELinuxMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SystemdMeter.c Minor code style update 2022-05-19 18:13:46 +02:00
SystemdMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
ZramMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
ZramMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
ZramStats.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00