diff options
author | xxxserxxx <60757196+xxxserxxx@users.noreply.github.com> | 2020-07-24 09:16:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 09:16:45 -0500 |
commit | f9f330a910655c8a9527a386d9aea475c5424be4 (patch) | |
tree | b29b292d394961282077757dfbfac71fa20a9c6b | |
parent | e59e91847b44d98aa5148ea184c9755dda302c98 (diff) | |
parent | 4a766282cf3658ed25c938e06f4cad00564e8d42 (diff) |
Merge pull request #142 from aofei/master
Align CPU values in CPU widget
-rw-r--r-- | widgets/cpu.go | 2 |
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) } }() |