summaryrefslogtreecommitdiffstats
path: root/CPUMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-19 23:52:03 +0100
committercgzones <cgzones@googlemail.com>2020-12-20 16:55:17 +0100
commit22da57d621f043d44940db677d46d5282330a263 (patch)
tree3e79867b6a3ef138e2b5dde80f38c60991bd0eab /CPUMeter.c
parentc5e31ba4aacb4065457d184567e12de657ad8735 (diff)
CPUMeter: drop minimum width of CPU usage in bar mode
The usage percentage is the first text, no need to set a minimum width. The BarMeter does already add padding.
Diffstat (limited to 'CPUMeter.c')
-rw-r--r--CPUMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CPUMeter.c b/CPUMeter.c
index cf5b9ed5..d84e4db7 100644
--- a/CPUMeter.c
+++ b/CPUMeter.c
@@ -67,7 +67,7 @@ static void CPUMeter_updateValues(Meter* this, char* buffer, size_t size) {
double percent = Platform_setCPUValues(this, cpu);
if (this->pl->settings->showCPUUsage) {
- xSnprintf(cpuUsageBuffer, sizeof(cpuUsageBuffer), "%5.1f%%", percent);
+ xSnprintf(cpuUsageBuffer, sizeof(cpuUsageBuffer), "%.1f%%", percent);
}
if (this->pl->settings->showCPUFrequency) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy