[rrd-users] rpn to convert NaN to 0

R Dicaire kritek at gmail.com
Sat Mar 14 20:03:18 CET 2009


On Sat, Mar 14, 2009 at 2:44 PM,  <parkamark at gmail.com> wrote:
> CDEF:ices=icecast,UN,0,icecast,IF,vicecast,UN,0,vicecast,IF,+

Hi Mark, while this one doesn't error when creating the graph, the
result isn't graphed.
icecast will always return a num since its always running, vicecast is
the one that that may return NaN.
If I read your CDEF correctly, UN is the NaN? And reads as if vicecast
is UN then set to 0?
What purpose does iterating icecast and vicecast a second time in the
statement achieve?


Alex, if you're referring to

http://oss.oetiker.ch/rrdtool/tut/rpntutorial.en.html, there's no
mention of converting NaN to 0, the tutorial assumes all values are
valid, but thanks.


-- 
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u



More information about the rrd-users mailing list