Skip to content

Commit

Permalink
Fix scientific format in cumulative counters of histograms
Browse files Browse the repository at this point in the history
Fixes:
- #130
  • Loading branch information
surik authored and Yury Gargay committed Oct 29, 2021
1 parent d3a0fdf commit a1f5941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formats/prometheus_text_format.erl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ escape_help_char(X) ->
bound_to_label_value(Bound) when is_integer(Bound) ->
integer_to_list(Bound);
bound_to_label_value(Bound) when is_float(Bound) ->
float_to_list(Bound);
float_to_list(Bound, [{decimals, 10}, compact]);
bound_to_label_value(infinity) ->
"+Inf".

Expand Down

0 comments on commit a1f5941

Please sign in to comment.