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 t...@oetiker.ch ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-developers mailing list
rrd-developers@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to