Skip to content

Commit

Permalink
The converting of bucket to string was fixed.
Browse files Browse the repository at this point in the history
Now the precision is fully used.
  • Loading branch information
vmugultyanov authored and vlamug committed Jul 19, 2017
1 parent 6a71ceb commit 5a5fd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/aggregators/histogram/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a5fd6a

Please sign in to comment.