Did you try the PREV variable (or rather function) ?
You could say: if UN then PREV else normal value.

I don't know if a value followed by two consecutive NaN's will be
changed to three times the same value, but you can give it a go yourself
to try.

A nice option may be to draw two lines. One in (for instance) green with
the regular values and one in red which shows only the NaN's changed in
PREV values.

Serge.

-----Original Message-----
From: Dexin Wang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 15, 2003 12:52 AM
To: [email protected]
Subject: [rrd-users] how to fill with previous value when graph


I have some NaN value on some PDP. When creating the graph, I know I can

do this:

CDEF:value=value,UN,0,value,IF

to set the value to 0 if it is NaN. Is it possible that whenever I find 
a NaN, I use the value of the previous non-NaN PDP? Basically can I 
store value in a variable and use it? Or some other way? Please help.

Thanks,

Dexin


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

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

Reply via email to