Clarence Hart wrote: > > Owen, I've tried the : > "CDEF:totalP=PREV,PREV,0,IF,FromDEF,1800,*,+" > > and it still returns NaN. This really looks like it should work.
This isn't correct. The PREV value is replaced by 0 when unknown (or at least that's the intention). However, what happens if "FromDEV" is unknown ? I doubt that "IF" will do the right thing here. The source for 1.1.x doesn't seem to check for unknowns and even worse, it seems to handle them as "true". Better make sure and use then "UN" statement here. > There has to be some way to hold a PREVIOUS value and re-add it > to the new DEF value. damn.... There is, and the provided CDEF is a good starting point. Just debug it. I still think you should let RRDtool do the math. You only need to find out what amount of time is graphed. cheers, -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +----------------------------------------------------------------------+ | Technical questions sent directly to me will be nuked. Use the list. | +----------------------------------------------------------------------+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +----------------------------------------------------------------------+ -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
