Skip to content

Commit

Permalink
fix pannic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
freedomkk-qfeng committed Sep 8, 2016
1 parent 153edcf commit 0847f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion funcs/swifstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ func swIfMetrics() (L []*model.MetricValue) {
}
}
}
lastIfStat[chIfStat.Ip] = chIfStat.IfStatsList
}
lastIfStat[chIfStat.Ip] = chIfStat.IfStatsList
}

endTime := time.Now()
Expand Down
3 changes: 2 additions & 1 deletion g/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import (
// 3.2.1.1 debugmetric support multi endpoints and metrics
// 3.2.1.2 gosnmp use getnext to walk snmp
// 4.0.0 caculate counter type on swcollect local,add speedpercent
// 4.0.1 fix sometimes ifstat pannic

const (
VERSION = "4.0.0"
VERSION = "4.0.1"
COLLECT_INTERVAL = time.Second
)

0 comments on commit 0847f60

Please sign in to comment.