Skip to content

Commit

Permalink
Make marshal totals public
Browse files Browse the repository at this point in the history
  • Loading branch information
elv-nate committed Mar 15, 2024
1 parent 7f460eb commit 45a8e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/histogram/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 45a8e25

Please sign in to comment.