diff --git a/internal/lib/ifmon.go b/internal/lib/ifmon.go index 7d67012..5cc1c44 100644 --- a/internal/lib/ifmon.go +++ b/internal/lib/ifmon.go @@ -44,8 +44,8 @@ func (c *MyConfig) UpdateIfStatus() { } else { switch strings.TrimSpace(string(operstate)) { case "up": - StatusStr := fmt.Sprintf("⍋", c.NetIf.UpColor) - operstate = []byte(StatusStr) + statusStr := fmt.Sprintf("⍋", c.NetIf.UpColor) + operstate = []byte(statusStr) case "down": statusStr := fmt.Sprintf("⍒", c.NetIf.DownColor) operstate = []byte(statusStr)