[rrd-users] SUM with RPN ?

l.johnson l.johnson at ilius.net
Mon Aug 19 19:34:57 MEST 2002


Hi everybody,
just trying to "simply" sum values 
eg)
tot =0
tot= tot+ value at time t
tot = tot + value at time t+1  and so on 

seems so easy, but no result with that kind of code:
...
DEF:val=$RRDFILE:val:MAX
CDEF:tot1=tot,PREV,UN,0,tot,IF              // not sure for the syntax, anyway .. always incorrect ! 
CDEF:tot= tot1,val,+
...

in other words , did anybody test the use of PREV or PREV(vname) as described in the rrdgraph manual or http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tutorial/cdeftutorial.html

or how to use it with unset values (not in the DEF declaration) ?

Many Thanks for the help.
SO long .

--
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