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) } }()