Merge pull request #142 from aofei/master
Align CPU values in CPU widget
This commit is contained in:
commit
f9f330a910
@ -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)
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user