Ping slower to allow routes to settle

This commit is contained in:
Adam Dunkels 2012-06-01 16:44:42 +02:00
parent 2e8ede93cf
commit 6d2d05b146
2 changed files with 6 additions and 6 deletions

View File

@ -134,7 +134,7 @@
<plugin>
se.sics.cooja.plugins.ScriptRunner
<plugin_config>
<script>TIMEOUT(300000);
<script>TIMEOUT(900000);
/* conf */
NR_MOTES = 5;
@ -142,9 +142,9 @@ NR_PINGS = 20;
NR_PINGS_MIN = 10;
osName = java.lang.System.getProperty("os.name").toLowerCase();
if (osName.startsWith("win")) {
pingCmd = "ping -n " + NR_PINGS + " "; /* + ip */
pingCmd = "ping -w 10000 -n " + NR_PINGS + " "; /* + ip */
} else {
pingCmd = "ping -c " + NR_PINGS + " "; /* + ip */
pingCmd = "ping -i 4 -c " + NR_PINGS + " "; /* + ip */
}
var nrReplies = new Array();
replyMsg = "from "; /* + ip */

View File

@ -109,7 +109,7 @@
<plugin>
se.sics.cooja.plugins.ScriptRunner
<plugin_config>
<script>TIMEOUT(60000);
<script>TIMEOUT(180000);
/* conf */
nrReplies = 0;
@ -117,10 +117,10 @@ ipAddress = "172.16.1.0";
osName = java.lang.System.getProperty("os.name").toLowerCase();
if (osName.startsWith("win")) {
pingOnceCmd = "ping -n 1 " + ipAddress;
pingCmd = "ping -n 10 " + ipAddress;
pingCmd = "ping -w 10000 -n 10 " + ipAddress;
} else {
pingOnceCmd = "ping -c 1 " + ipAddress;
pingCmd = "ping -c 10 " + ipAddress;
pingCmd = "ping -i 4 -c 10 " + ipAddress;
}
replyMsg = "from " + ipAddress;