Moved the TIMEOUT() definition until after the print_stats() definition so that the print_stats() function can be called when the TIMEOUT() is invoked
This commit is contained in:
parent
f63f6a7a88
commit
fcd50868aa
@ -350,8 +350,7 @@
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.ScriptRunner
|
||||
<plugin_config>
|
||||
<script>TIMEOUT(500000, print_stats());
|
||||
|
||||
<script>
|
||||
function
|
||||
print_stats()
|
||||
{
|
||||
@ -394,9 +393,10 @@ print_stats()
|
||||
"% tx " + 100 * total_transmit / (total_cpu + total_lpm) +
|
||||
"% average latency " + total_latency / (4096 * total_received) +
|
||||
" ms \n");
|
||||
|
||||
}
|
||||
|
||||
TIMEOUT(500000, print_stats());
|
||||
|
||||
/* Conf. */
|
||||
booted = new Array();
|
||||
count = new Array();
|
||||
|
Loading…
Reference in New Issue
Block a user