do not reset the snmp values

This commit is contained in:
xtaci
2019-05-23 11:26:08 +08:00
parent 22966661c4
commit 7382d41489
+1 -1
View File
@@ -38,7 +38,7 @@ func SnmpLogger(path string, interval int) {
if err := w.Write(append([]string{fmt.Sprint(time.Now().Unix())}, kcp.DefaultSnmp.ToSlice()...)); err != nil {
log.Println(err)
}
kcp.DefaultSnmp.Reset()
// kcp.DefaultSnmp.Reset()
w.Flush()
f.Close()
}