Reduced the number of packets that needs to be received

This commit is contained in:
adamdunkels 2009-10-19 20:47:28 +00:00
parent 4de1816e36
commit f9d00bc8bf

View file

@ -116,7 +116,7 @@ while (true) {
nr_packets[id]++; nr_packets[id]++;
//log.log("Node " + id + " received " + nr_packets[id] + " messages\n"); //log.log("Node " + id + " received " + nr_packets[id] + " messages\n");
if (nr_packets[1] >= 10 && nr_packets[2] >= 10) { if (nr_packets[1] >= 4 && nr_packets[2] >= 4) {
log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n"); log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n");
log.testOK(); /* Report test success */ log.testOK(); /* Report test success */
} }