refactor dockersource container refresh into channel

This commit is contained in:
Bradley Cicenas
2017-03-05 17:46:41 +11:00
parent 8fb5c5de59
commit 3172f141f9
9 changed files with 85 additions and 100 deletions
-12
View File
@@ -3,8 +3,6 @@ package cwidgets
import (
"fmt"
"strconv"
ui "github.com/gizak/termui"
)
const (
@@ -48,13 +46,3 @@ func getPrecision(f float64) int {
}
return 2 // default precision
}
func ColorScale(n int) ui.Attribute {
if n > 70 {
return ui.ColorRed
}
if n > 30 {
return ui.ColorYellow
}
return ui.ColorGreen
}