mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
refactor dockersource container refresh into channel
This commit is contained in:
@@ -23,3 +23,13 @@ func (w *GaugeCol) Reset() {
|
||||
w.Label = "-"
|
||||
w.Percent = 0
|
||||
}
|
||||
|
||||
func colorScale(n int) ui.Attribute {
|
||||
if n > 70 {
|
||||
return ui.ColorRed
|
||||
}
|
||||
if n > 30 {
|
||||
return ui.ColorYellow
|
||||
}
|
||||
return ui.ColorGreen
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user