[rrd-users] help with cdef

winkey rush at winkey.oompah.org
Sat Aug 14 19:20:16 MEST 2004


i cannot seem to figure this out, i get results i do not expect

rrdtool graph \
        /home/rush/public_html/weather/metar/dir.gif \
        --color=BACK#FFFFCC \
        --color=CANVAS#CCFFFF \
        --title="Daily Wind Direction" \
        --width=300 \
        DEF:dir=/home/rush/public_html/weather/metar/weather.rrd:winddir:AVERAGE \
        DEF:speed=/home/rush/public_html/weather/metar/weather.rrd:windspeed:AVERAGE \
        CDEF:calm=speed,0,EQ \
        CDEF:mydir=calm,UNKN,dir,IF \
        LINE2:mydir#00a000:"Degrees"


basicly if speed is zero i want an unknown value for direction but i
seem to be ending up with unknowns for speeds greater than zero and
other anomolys

-- 
winkey <rush at winkey.oompah.org>

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list