equal
deleted
inserted
replaced
56 -- I-D-00: 4.1.2.2.1: |
56 -- I-D-00: 4.1.2.2.1: |
57 -- Exposers MUST produce output for positive infinity as +Inf. |
57 -- Exposers MUST produce output for positive infinity as +Inf. |
58 return "+Inf" |
58 return "+Inf" |
59 end |
59 end |
60 |
60 |
61 return string.format("%g", v) |
61 return string.format("%.14g", v) |
62 end |
62 end |
63 |
63 |
64 -- BEGIN of generic MetricFamily implementation |
64 -- BEGIN of generic MetricFamily implementation |
65 |
65 |
66 local metric_family_mt = {} |
66 local metric_family_mt = {} |