diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-19 23:52:03 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-12-20 16:55:17 +0100 |
commit | 22da57d621f043d44940db677d46d5282330a263 (patch) | |
tree | 3e79867b6a3ef138e2b5dde80f38c60991bd0eab | |
parent | c5e31ba4aacb4065457d184567e12de657ad8735 (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.
-rw-r--r-- | CPUMeter.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |