]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Allow empty imginfo string format 402/head
authorJulien Thomas <jthomas@exosec.fr>
Tue, 25 Jun 2013 11:22:40 +0000 (13:22 +0200)
committerJulien Thomas <jthomas@exosec.fr>
Tue, 25 Jun 2013 14:24:14 +0000 (16:24 +0200)
commitc6145ebf927bb4be899b71df630522d0cfdde6ba
tree775cba0b8e13890f0bb2ddea03ca896e5375971b
parent5d5616019cfc25e2ab08a14cc475628addcb5106
Allow empty imginfo string format

Commit 37d3050 "Added imginfo format check" breaks -f "" which used
to be very usefull to print data as text format on stdout. Allowing
an empty -f was particularly interesting because there was no
<width>x<height> printed out.

Before :

[root@nagios-2b ~]# rrdtool graph /dev/null -f "" --start -1d \
    DEF:d=/var/lib/rrd/nagios-2b/load.rrd:load5:AVERAGE \
    VDEF:v=d,AVERAGE \
    PRINT:v:%.6lf
5.284605

After :

[root@nagios-2b ~]# rrdtool graph /dev/null -f "" --start -1d \
    DEF:d=/var/lib/rrd/nagios-2b/load.rrd:load5:AVERAGE \
    VDEF:v=d,AVERAGE \
    PRINT:v:%.6lf
ERROR: bad format for imginfo
src/rrd_graph.c