[rrd-users] Re: Fw: Addition Problem

Serge Maandag serge.maandag at staff.zeelandnet.nl
Tue May 7 09:33:07 MEST 2002


You probably are adding a known value to an unknown value.

The trick would be to skip the unknown ones, although you would be
lying.
You can do the skip in your rpn.

Say your rpn looks like this:

def: var1
def: var2

cdef:total=var1,var2,+

you could change that to:

cdef:total=var1,UN,0,var1,IF,var2,UN,0,var2,IF,+
(untested)

Which says:
total = (if var1 = UN then 0 else var1) + (if var2 = UN then 0 else
var2)

Serge Maandag.


-----Original Message-----
From: Shahira Rasmy [mailto:shahira at nile-online.net] 
Sent: Tuesday, May 07, 2002 8:19 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Fw: Addition Problem





Dear All;
I have some problems with adding several rrds,,some are collecting data
for a long time and the others are recent ones. The results is that the
history o the old ones disappear in addition.. Can anyone tell me how
can i solve that problem???

Thanks,


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


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