[rrd-users] PREV and PREV()

Dan McGinn-Combs Dan.McGinn-Combs at Geac.com
Wed Apr 23 15:10:44 MEST 2003

> I'm trying to produce a number which relates to the timeline or scope
> of the graph created in RRDTool using PREV and/or PREV().
> I notice that using these if the first number is UNDEFINED, the whole
> calculation comes out -1 (or it looks like -1 when I use GPRINT to
> print the LAST value).
> Is there a quick and easy way to query a CDEF value to find out if it
> is UNDEFINED and change it to ZERO? The only thing I could come up
> with was this:
> CDEF:Tick=Small,PREV,DUP,UN,0,EQ,EXC,0,IF,+
> Where Small is variable I'm trying to track.
> Any better ideas? Thanks!
> Dan
> ...---... ...---...
> Dan McGinn-Combs
> dan.mcginn-combs at geac.com
> Atlanta, Georgia

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