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

Florian Weimer <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
* 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.

-- 
Florian Weimer                <[email protected]>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99
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.