fix xff excessive rounding
authorFrancois-Xavier Bourlet <fx@dotcloud.com>
Sun, 21 Aug 2011 09:05:40 +0000 (11:05 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 21 Aug 2011 11:19:43 +0000 (13:19 +0200)
Hi,

When generating arguments for rrd_create, the previous
format string "%.1f", was rounding up the value too aggressively.

ex: for xff==0.9999 the result would be -> 1.0 (invalid value for xff!)

The new format string is "%.10f", which lead up to 10 digits after the
dot, enough to be close to the double type limit, and so handling
correctly the previous example.

Change-Id: I7c6cc55b0d43beb5ef351bb04b67f4628249c737


No differences found