<div dir="ltr"><div><div><div>After look at the CDEF tutorial<br><br><a href="http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html">http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html</a><br><br></div>and reading the section on handling unknown data<br>
<br></div>I thought I would try this to see if I could detect if had unknown data in a rrd, so i could process it differently<br><br></div>If its unknown set the value to 10 else set to 0<br><div><div><pre>CDEF:wrong=currTot,UN,10,0,IF <br>
</pre><pre>VDEF:Wrong=wrong,MAXIMUM<br></pre><pre>VDEF:AWrong=wrong,AVERAGE<br></pre><pre>PRINT:Wrong:%5.2lf            ----&gt; returns inf<br></pre><pre>PRINT:AWrong:%5.2lf           ----&gt; returns a value <br></pre><pre>
</pre><pre>The 2nd problem is when I try this <br>PRINT:AWrong:%c:strftime<br><br></pre><pre>I always get the start of unix time ....1970 <br></pre><pre><br></pre>John<br></div></div></div>