Inconsistent variable name in ifmon.go

This commit is contained in:
eleksir
2026-03-31 00:49:52 +03:00
parent c621d03a71
commit 217948ade6

View File

@@ -44,8 +44,8 @@ func (c *MyConfig) UpdateIfStatus() {
} else { } else {
switch strings.TrimSpace(string(operstate)) { switch strings.TrimSpace(string(operstate)) {
case "up": case "up":
StatusStr := fmt.Sprintf("<span foreground=\"%s\">⍋</span>", c.NetIf.UpColor) statusStr := fmt.Sprintf("<span foreground=\"%s\">⍋</span>", c.NetIf.UpColor)
operstate = []byte(StatusStr) operstate = []byte(statusStr)
case "down": case "down":
statusStr := fmt.Sprintf("<span foreground=\"%s\">⍒</span>", c.NetIf.DownColor) statusStr := fmt.Sprintf("<span foreground=\"%s\">⍒</span>", c.NetIf.DownColor)
operstate = []byte(statusStr) operstate = []byte(statusStr)