From 5a5fd6a4122e458ebc83041e7307aa62f70b1fc6 Mon Sep 17 00:00:00 2001 From: vmugultyanov Date: Fri, 23 Jun 2017 12:25:11 +0300 Subject: [PATCH] The converting of bucket to string was fixed. Now the precision is fully used. --- plugins/aggregators/histogram/histogram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/aggregators/histogram/histogram.go b/plugins/aggregators/histogram/histogram.go index b0f8b232f51c2..7276d723f76dd 100644 --- a/plugins/aggregators/histogram/histogram.go +++ b/plugins/aggregators/histogram/histogram.go @@ -142,7 +142,7 @@ func (h *HistogramAggregator) Push(acc telegraf.Accumulator) { for index, bucket := range buckets { count += counts[index] - addFields(acc, aggregate, field, strconv.FormatFloat(bucket, 'f', 1, 64), count) + addFields(acc, aggregate, field, strconv.FormatFloat(bucket, 'f', -1, 64), count) } // the adding a value to the infinitive bucket