From 45a8e259bd3d7471d85b4102a79b4293877c8000 Mon Sep 17 00:00:00 2001 From: Nate Armstrong Date: Fri, 15 Mar 2024 11:42:23 -0700 Subject: [PATCH] Make marshal totals public --- util/histogram/histogram.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/histogram/histogram.go b/util/histogram/histogram.go index 41d84b8..74ea185 100644 --- a/util/histogram/histogram.go +++ b/util/histogram/histogram.go @@ -129,7 +129,7 @@ func NewDurationHistogramBins(bins []*DurationBin) *DurationHistogram { // DurationHistogram uses predefined bins. type DurationHistogram struct { bins []*DurationBin - marshalTotals bool + MarshalTotals bool } func (h *DurationHistogram) TotalCount() int64 { @@ -262,7 +262,7 @@ func (h *DurationHistogram) MarshalGeneric() interface{} { totalCount += v[i].Count totalDur += v[i].DSum } - if !h.marshalTotals { + if !h.MarshalTotals { return v }