This commit is contained in:
Cameron Sparr 2016-01-15 21:40:03 +00:00
commit a12ea9eba1
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
### Bugfixes
- [#506](https://github.com/influxdb/telegraf/pull/506): Ping input doesn't return response time metric when timeout. Thanks @titilambert!
- [#508](https://github.com/influxdb/telegraf/pull/508): Fix prometheus cardinality issue with the `net` plugin
- [#396](https://github.com/influxdata/telegraf/issues/396): Mongostat diff bug fix
## v0.10.0 [2016-01-12]

View File

@ -390,7 +390,7 @@ func computeLockDiffs(prevLocks, curLocks map[string]LockUsage) []LockUsage {
func diff(newVal, oldVal, sampleTime int64) int64 {
d := newVal - oldVal
if d < 0 {
d = newVal
d = maxVal - oldVal + newVal
}
return d / sampleTime
}