summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/cpu.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/cpu.go b/widgets/cpu.go
index d8d9a50..1a7204e 100644
--- a/widgets/cpu.go
+++ b/widgets/cpu.go
@@ -120,7 +120,7 @@ func (cpu *CPUWidget) update() {
defer cpu.updateLock.Unlock()
for key, percent := range cpus {
cpu.Data[key] = append(cpu.Data[key], float64(percent))
- cpu.Labels[key] = fmt.Sprintf("%d%%", percent)
+ cpu.Labels[key] = fmt.Sprintf("%3d%%", percent)
cpu.cpuLoads[key] = float64(percent)
}
}()