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.
This commit is contained in:
Christian Göttsche 2020-12-19 23:52:03 +01:00 committed by cgzones
parent c5e31ba4aa
commit 22da57d621

View File

@ -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) {