Re: Bug#543631: rrdupdate does not support floating point values with DERIVE, COUNTER

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
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 [email protected] ++41 62 775 9902 / sb: -9900
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.