It hangs with AVERAGE, MINIMUM and LAST also.<br><br>The strange thing is that if I enable the debug printf in the beginning of vcalc_def() function, it prints out AND returns OK.<br>Then I tested to remove the debug printf again and now it hangs again.
<br>Tries to add it again, and now it dosn&#39;t hang. <br><br>The debug printf prints:<br>DEBUG: start == 1182807840, end == 1182894480, 361 steps<br><br>So just now I&#39;m in the situation when I add printfs to see what happens it works, removes the dosn&#39;t work. It looks like I have to learn how to use gdb. Can it be run on an ARM7 platform?
<br><br>Best regards<br>Dag Erlandsson<br><br><div><span class="gmail_quote">2007/6/26, Alex van den Bogaerdt &lt;<a href="mailto:alex@ergens.op.het.net">alex@ergens.op.het.net</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Jun 26, 2007 at 02:49:48PM +0200, Dag Erlandsson wrote:<br><br>&gt; rrdtool graph - DEF:countA=/var/owdata/temp1.rrd:temp:AVERAGE<br>&gt; VDEF:powerA=countA,TOTAL<br>&gt;<br>&gt; This command never returns. If I remove the VDEF part, it works. I have
<br>&gt; tried to use an other rrd file, same result.<br>&gt;<br>&gt; I&#39;m running rrdtool on a NSLU2 unit (ARM7 cpu) using Debian. I have tried<br>&gt; with the motion package in debian and also compiled the sources from the
<br>&gt; trunk in the SVN archive, same result.<br>&gt;<br>&gt; Have I done something wrong in this command?<br><br>I don&#39;t think so.&nbsp;&nbsp;The same problem should occur when you try to<br>compute the average (this uses the same code).&nbsp;&nbsp;Please try:
<br><br>VDEF:powerA=countA,AVERAGE<br><br>Does this hang as well?<br><br>It sounds like an endless loop, however I don&#39;t see how (and where)<br>this would happen.<br><br>Do you have a huge amount of rows to process, combined with a small
<br>integer size perhaps?<br><br>Maybe you can add some debugging printf statements to the code,<br>look in rrd_graph.c near the end, function vdef_calc().&nbsp;&nbsp;It would<br>be interesting to know if the code is reached and if it exits again.
<br><br><br>--<br>Alex van den Bogaerdt<br><a href="http://www.vandenbogaerdt.nl/rrdtool/">http://www.vandenbogaerdt.nl/rrdtool/</a><br><br>_______________________________________________<br>rrd-users mailing list<br><a href="mailto:rrd-users@lists.oetiker.ch">
rrd-users@lists.oetiker.ch</a><br><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br></blockquote></div><br>