[rrd-users] CDEF,RPN, no decimal constant possible?

Peter pspiegler at gmx.de
Fri Jul 11 08:01:53 CEST 2014


Hi,
I get the same issue on a raspberry pi with Debian Wheezy and locale
LANG=en_US.UTF-8 
and RRDtool 1.4.7      Compiled Sep  4 2012 23:43:06

Create rrd:
rrdtool create L.rrd  --step 1 DS:DeLog_L:GAUGE:2:U:U
DS:L:COMPUTE:DeLog_L,LOG,4.342944,* RRA:AVERAGE:0.5:1:10

Get Info:
rrdtool info L.rrd
...
ds[L].cdef = "DeLog_L,LOG,4,*"
...
Do some updates with
rrdtool update L.rrd N:1000

And a dump show not the correct result of 30:
rrdtool dump  L.rrd
...
 <row><v>1.0000000000e+03</v><v>2.7631021116e+01</v></row>
...

rrd_info show that is a problem in rrd_create, which convert the input
string "4.342944" to the number 4 in the rrd.

So I assume all  compilations - linux and  windows - are affected. 

Peter







--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/CDEF-RPN-no-decimal-constant-possible-tp7582283p7582296.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list