cpu color: make threshold upper: > 70% warn and > 90% is danger

This commit is contained in:
Sergey Ponomarev 2020-11-24 00:51:09 +02:00
parent 7632420ecc
commit 4973bc83ff
1 changed files with 2 additions and 2 deletions

View File

@ -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")