htop/pcp
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
..
columns PCP: support for 'dynamic columns' added at runtime 2021-08-13 07:32:57 +02:00
meters Pretty-print values in the PCP DynamicMeter code 2021-07-08 10:56:05 +10:00
PCPDynamicColumn.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PCPDynamicColumn.h Add completion handling for dynamic meters and columns 2021-09-03 09:47:01 +02:00
PCPDynamicMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PCPDynamicMeter.h Add completion handling for dynamic meters and columns 2021-09-03 09:47:01 +02:00
PCPMetric.c Fix misc styleguide issues and add missing header files 2021-12-07 17:04:49 +11:00
PCPMetric.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PCPProcess.c Process: Display single digit precision for CPU% greater than 99.9% 2022-05-26 15:03:39 +02:00
PCPProcess.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PCPProcessList.c Auto-size (normalized) CPU usage columns 2022-03-06 19:56:25 +01:00
PCPProcessList.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
Platform.c Use correct command field as default field 2021-12-17 14:45:15 +01:00
Platform.h Mark ScreenDefaults const 2021-12-17 14:45:15 +01:00
ProcessField.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00