Mongostat diff bug, less equal to less

This commit is contained in:
Cameron Sparr 2015-10-28 10:44:09 -06:00
parent 09a0c3b40f
commit 48d11f0a5c
1 changed files with 1 additions and 1 deletions

View File

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