mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
cpu color: make threshold upper: > 70% warn and > 90% is danger
This commit is contained in:
parent
7632420ecc
commit
4973bc83ff
@ -100,10 +100,10 @@ func (w *GaugeCol) UnHighlight() {
|
||||
}
|
||||
|
||||
func colorScale(n int) ui.Attribute {
|
||||
if n <= 30 {
|
||||
if n <= 70 {
|
||||
return ui.ThemeAttr("status.ok")
|
||||
}
|
||||
if n <= 70 {
|
||||
if n <= 90 {
|
||||
return ui.ThemeAttr("status.warn")
|
||||
}
|
||||
return ui.ThemeAttr("status.danger")
|
||||
|
Loading…
Reference in New Issue
Block a user