cleaning up

mine
derailed 2020-03-06 10:17:03 -07:00
parent bd70982b50
commit 5d00b9bc6f
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ func (t Threshold) Validate(c client.Connection, ks KubeSettings) {
}
}
// DefConFor returns a defcon level for the current state.
// LevelFor returns a defcon level for the current state.
func (t Threshold) LevelFor(k string, v int) SeverityLevel {
s, ok := t[k]
if !ok || v < 0 || v > 100 {
@ -89,7 +89,7 @@ func (t Threshold) LevelFor(k string, v int) SeverityLevel {
return SeverityLow
}
// DefConColorFor returns an defcon level associated level.
// SeverityColor returns an defcon level associated level.
func (t *Threshold) SeverityColor(k string, v int) string {
switch t.LevelFor(k, v) {
case SeverityHigh: