Browse Source

- stats: if "SET" to zero, stat is removed

pull/1/head
bloved 1 year ago
parent
commit
15ec9f49ac
  1. 7
      01.stats.go

7
01.stats.go

@ -81,7 +81,12 @@ func statsThread() {
case "INC":
ZabovStats[item.Payload] += item.Number
case "SET":
ZabovStats[item.Payload] = item.Number
if item.Number == 0 {
delete(ZabovStats, item.Payload)
} else {
ZabovStats[item.Payload] = item.Number
}
case "PRI":
statsPrint()
}

Loading…
Cancel
Save