[rrd-developers] Bug with CDEF processing

Mike McHenry mmchenry at origix.net
Fri Feb 1 20:32:20 MET 2002


I have been beating my head over this one but there appears to be a bug
in the way CDEF statements are processed in the current code base. I
have looked back and this bug seems to have been introduced on
12/25/2001.

Basically appears to happen is that multiple CDEF definitions seem to be
blending the variables together. For example, take a simple database
with two sets of variables in it and run the following command....

rrdtool graph /tmp/test.gif -s 1012261801 -e 1012278000 \
        DEF:input=database.rrd:input:AVERAGE \
        DEF:output=database.rrd:output:AVERAGE \
        CDEF:inputBits=input \
        CDEF:outputBits=output \
        GPRINT:input:AVERAGE:"Input average %1.2lf" \
        GPRINT:output:AVERAGE:"Output average %1.2lf"

What seems to happen is that the two CDEF statements somehow seem to
become intertwined and end up being printed as the same value in the
final GPRINT statements (even though the datasets are definitely not the
same values). This appears to be a bug in the CDEF code and I am
wondering if anyone has any input or can point me in the right
direction.

I have narrowed down the bug to something that was introduced on
12/25/2001. The 12/24/2001 CVS code does not exhibit this problem. It
looks like the patch between the two versions was pretty significant so
I am at a little bit of a loss as to where to start looking for the
problems. Any suggestions would be appreciated, thanks!

Mike McHenry
 Senior Network Engineer
 Origix Corp.



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



More information about the rrd-developers mailing list