Mongostat diff bug, less equal to less
This commit is contained in:
parent
09a0c3b40f
commit
48d11f0a5c
|
@ -368,7 +368,7 @@ func computeLockDiffs(prevLocks, curLocks map[string]LockUsage) []LockUsage {
|
|||
|
||||
func diff(newVal, oldVal, sampleTime int64) int64 {
|
||||
d := newVal - oldVal
|
||||
if d <= 0 {
|
||||
if d < 0 {
|
||||
d = newVal
|
||||
}
|
||||
return d / sampleTime
|
||||
|
|
Loading…
Reference in New Issue