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't hang. <br><br>The debug printf prints:<br>DEBUG: start == 1182807840, end == 1182894480, 361 steps<br><br>So just now I'm in the situation when I add printfs to see what happens it works, removes the dosn'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 <<a href="mailto:alex@ergens.op.het.net">alex@ergens.op.het.net</a>>:</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>> rrdtool graph - DEF:countA=/var/owdata/temp1.rrd:temp:AVERAGE<br>> VDEF:powerA=countA,TOTAL<br>><br>> This command never returns. If I remove the VDEF part, it works. I have
<br>> tried to use an other rrd file, same result.<br>><br>> I'm running rrdtool on a NSLU2 unit (ARM7 cpu) using Debian. I have tried<br>> with the motion package in debian and also compiled the sources from the
<br>> trunk in the SVN archive, same result.<br>><br>> Have I done something wrong in this command?<br><br>I don't think so. The same problem should occur when you try to<br>compute the average (this uses the same code). 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'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(). 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>