increased timeout + added some more test output
This commit is contained in:
parent
54b7875295
commit
6c66d36d62
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
TIMEOUT(120000, log.log("received/node: " + count[1] + " " + count[2] + " " + count[3] + " " + count[4] + " " + count[5] + " " + count[6] + " " + count[7] + "\n"));
|
TIMEOUT(300000, log.log("received/node: " + count[1] + " " + count[2] + " " + count[3] + " " + count[4] + " " + count[5] + " " + count[6] + " " + count[7] + "\n"));
|
||||||
|
|
||||||
/* Conf. */
|
/* Conf. */
|
||||||
booted = new Array();
|
booted = new Array();
|
||||||
|
@ -12,7 +12,8 @@ for (i = 1; i <= nrNodes; i++) {
|
||||||
|
|
||||||
/* Wait until all nodes have started */
|
/* Wait until all nodes have started */
|
||||||
while (nodes_starting) {
|
while (nodes_starting) {
|
||||||
WAIT_UNTIL(msg.startsWith('Starting'));
|
YIELD_THEN_WAIT_UNTIL(msg.startsWith('Starting'));
|
||||||
|
|
||||||
log.log("Node " + id + " booted\n");
|
log.log("Node " + id + " booted\n");
|
||||||
booted[id] = true;
|
booted[id] = true;
|
||||||
|
|
||||||
|
@ -31,8 +32,8 @@ while (true) {
|
||||||
|
|
||||||
/* Count sensor data packets */
|
/* Count sensor data packets */
|
||||||
source = msg.split(" ")[0];
|
source = msg.split(" ")[0];
|
||||||
log.log("Got data from node " + source + "\n");
|
|
||||||
count[source]++;
|
count[source]++;
|
||||||
|
log.log("Got data from node " + source + ": tot=" + count[source] + "\n");
|
||||||
|
|
||||||
/* Fail if any node has transmitted more than 20 packets */
|
/* Fail if any node has transmitted more than 20 packets */
|
||||||
for (i = 1; i <= nrNodes; i++) {
|
for (i = 1; i <= nrNodes; i++) {
|
||||||
|
|
Loading…
Reference in a new issue