[rrd-users] Accuracy while drawing pictures?

Daniel Tepas daniel at the-temple.de
Sat Oct 28 11:57:13 MEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi all,

I am collecting temperature values from 4 sensors with 2 computers.
One of them copies the rrd file to the other, where thew graphs are
generated.
The two temperatures from one computer are plotted in arbitrary
precision, the other two values are cut down to integer values.
With rrdtool dump I checked that both rrds contain floating point values.
Any explanation for this?

TIA, Daniel

rrdtool dump /usr/local/rrdtool/temp1.rrd | less
[...]
<!-- 2006-10-28 11:05:00 CEST / 1162026300 --> <row><v>
1.9938386336e+01 </v></row>
<!-- 2006-10-28 11:10:00 CEST / 1162026600 --> <row><v>
1.9881528965e+01 </v></row>
<!-- 2006-10-28 11:15:00 CEST / 1162026900 --> <row><v>
1.9938179031e+01 </v></row>
<!-- 2006-10-28 11:20:00 CEST / 1162027200 --> <row><v>
1.9881780851e+01 </v></row>

rrdtool dump /usr/local/rrdtool/rio/temp1.rrd | less
[...]
<!-- 2006-10-26 13:40:00 CEST / 1161862800 --> <row><v>
2.2190000000e+01 </v></row>
<!-- 2006-10-26 13:45:00 CEST / 1161863100 --> <row><v>
2.2224600000e+01 </v></row>
<!-- 2006-10-26 13:50:00 CEST / 1161863400 --> <row><v>
2.2250000000e+01 </v></row>


/usr/bin/rrdtool graph /var/www/rrd/temp.day.png $OPTIONS -A --start
- -86400 \
DEF:temp0=/usr/local/rrdtool/rio/temp0.rrd:temp:AVERAGE \
DEF:temp1=/usr/local/rrdtool/rio/temp1.rrd:temp:AVERAGE \
DEF:temp2=/usr/local/rrdtool/temp0.rrd:temp:AVERAGE \
DEF:temp3=/usr/local/rrdtool/temp1.rrd:temp:AVERAGE \
LINE1:temp0#008800:"Draußen" \
LINE1:temp1#bb0000:"Partykeller" \
LINE1:temp3#0066ff:"Wohnzimmer" \
LINE1:temp2#44ff44:"Büro Daniel"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFQyl434dQ9W8Dyg4RAlZKAJ9tAT+T1oBVpvAfkFaPFbjYt/3F1QCfTSDm
Qv29h98vIL/YEyPwyKsibQ8=
=xK5e
-----END PGP SIGNATURE-----

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list