Reset histogram sum on Histogram.Reset call
This commit is contained in:
parent
57c9db1bc3
commit
cea3ca311b
@ -75,6 +75,7 @@ func (h *Histogram) resetLocked() {
|
|||||||
}
|
}
|
||||||
h.lower = 0
|
h.lower = 0
|
||||||
h.upper = 0
|
h.upper = 0
|
||||||
|
h.sum = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update updates h with v.
|
// Update updates h with v.
|
||||||
|
Loading…
Reference in New Issue
Block a user