From cea3ca311bc4d1be6a167171127ce50636c7b4ce Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 16 Mar 2021 12:13:43 +0200 Subject: [PATCH] Reset histogram sum on Histogram.Reset call --- histogram.go | 1 + 1 file changed, 1 insertion(+) diff --git a/histogram.go b/histogram.go index e1a168c..0f6018b 100644 --- a/histogram.go +++ b/histogram.go @@ -75,6 +75,7 @@ func (h *Histogram) resetLocked() { } h.lower = 0 h.upper = 0 + h.sum = 0 } // Update updates h with v.