mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
cap cpu gauge % to 100 in compact view
This commit is contained in:
parent
ca61ec712e
commit
3553b0af9d
@ -30,6 +30,9 @@ func (row *Compact) SetCPU(val int) {
|
||||
val = 5
|
||||
row.Cpu.BarColor = ui.ThemeAttr("gauge.bar.bg")
|
||||
}
|
||||
if val > 100 {
|
||||
val = 100
|
||||
}
|
||||
row.Cpu.Percent = val
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user