Skip to content

Commit 5a5fd6a

Browse files
vmugultyanovvlamug
vmugultyanov
authored andcommitted
The converting of bucket to string was fixed.
Now the precision is fully used.
1 parent 6a71ceb commit 5a5fd6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/aggregators/histogram/histogram.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (h *HistogramAggregator) Push(acc telegraf.Accumulator) {
142142

143143
for index, bucket := range buckets {
144144
count += counts[index]
145-
addFields(acc, aggregate, field, strconv.FormatFloat(bucket, 'f', 1, 64), count)
145+
addFields(acc, aggregate, field, strconv.FormatFloat(bucket, 'f', -1, 64), count)
146146
}
147147

148148
// the adding a value to the infinitive bucket

0 commit comments

Comments
 (0)