Merge a3b60b77cd
into b24e71b232
This commit is contained in:
commit
a12ea9eba1
|
@ -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]
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue