[rrd-developers] Bug#543631: rrdupdate does not support floating point values with DERIVE, COUNTER

Tobias Oetiker tobi at oetiker.ch
Thu Jan 14 14:10:01 CET 2010


Hi Florian,

Today Florian Weimer wrote:

> * Tobias Oetiker:
>
> > OTOH with long long being available across the board, this might be
> > a bit of a anachronism ... not quite sure though, what happens when
> > you diff two doubles realy close to 2^64 ... does this stay
> > accurate enough ? I guess a little magic would still be needed
> > there ... care to investigate ?
>
> double is only exact up to about 2**52.  long double goes till 2**63
> (or beyond), but is not available everywhere.  The precision issue was
> not apparent to me.
>
> We probably need to forcibly generate integer values for DERIVE and
> COUNTER in the application that feeds rrdtool.

another option would be to dynamically treat values with decimals
different from integer values ...

cheers
tobi


>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list