From 5d00b9bc6f1690ffa6bc92b93fb4898b815dd8cf Mon Sep 17 00:00:00 2001 From: derailed Date: Fri, 6 Mar 2020 10:17:03 -0700 Subject: [PATCH] cleaning up --- internal/config/threshold.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/threshold.go b/internal/config/threshold.go index e65a995c..cf5f9e47 100644 --- a/internal/config/threshold.go +++ b/internal/config/threshold.go @@ -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: