Inconsistent variable name in ifmon.go
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user