Ping slower to allow routes to settle
This commit is contained in:
parent
2e8ede93cf
commit
6d2d05b146
2 changed files with 6 additions and 6 deletions
|
@ -134,7 +134,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
se.sics.cooja.plugins.ScriptRunner
|
se.sics.cooja.plugins.ScriptRunner
|
||||||
<plugin_config>
|
<plugin_config>
|
||||||
<script>TIMEOUT(300000);
|
<script>TIMEOUT(900000);
|
||||||
|
|
||||||
/* conf */
|
/* conf */
|
||||||
NR_MOTES = 5;
|
NR_MOTES = 5;
|
||||||
|
@ -142,9 +142,9 @@ NR_PINGS = 20;
|
||||||
NR_PINGS_MIN = 10;
|
NR_PINGS_MIN = 10;
|
||||||
osName = java.lang.System.getProperty("os.name").toLowerCase();
|
osName = java.lang.System.getProperty("os.name").toLowerCase();
|
||||||
if (osName.startsWith("win")) {
|
if (osName.startsWith("win")) {
|
||||||
pingCmd = "ping -n " + NR_PINGS + " "; /* + ip */
|
pingCmd = "ping -w 10000 -n " + NR_PINGS + " "; /* + ip */
|
||||||
} else {
|
} else {
|
||||||
pingCmd = "ping -c " + NR_PINGS + " "; /* + ip */
|
pingCmd = "ping -i 4 -c " + NR_PINGS + " "; /* + ip */
|
||||||
}
|
}
|
||||||
var nrReplies = new Array();
|
var nrReplies = new Array();
|
||||||
replyMsg = "from "; /* + ip */
|
replyMsg = "from "; /* + ip */
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
se.sics.cooja.plugins.ScriptRunner
|
se.sics.cooja.plugins.ScriptRunner
|
||||||
<plugin_config>
|
<plugin_config>
|
||||||
<script>TIMEOUT(60000);
|
<script>TIMEOUT(180000);
|
||||||
|
|
||||||
/* conf */
|
/* conf */
|
||||||
nrReplies = 0;
|
nrReplies = 0;
|
||||||
|
@ -117,10 +117,10 @@ ipAddress = "172.16.1.0";
|
||||||
osName = java.lang.System.getProperty("os.name").toLowerCase();
|
osName = java.lang.System.getProperty("os.name").toLowerCase();
|
||||||
if (osName.startsWith("win")) {
|
if (osName.startsWith("win")) {
|
||||||
pingOnceCmd = "ping -n 1 " + ipAddress;
|
pingOnceCmd = "ping -n 1 " + ipAddress;
|
||||||
pingCmd = "ping -n 10 " + ipAddress;
|
pingCmd = "ping -w 10000 -n 10 " + ipAddress;
|
||||||
} else {
|
} else {
|
||||||
pingOnceCmd = "ping -c 1 " + ipAddress;
|
pingOnceCmd = "ping -c 1 " + ipAddress;
|
||||||
pingCmd = "ping -c 10 " + ipAddress;
|
pingCmd = "ping -i 4 -c 10 " + ipAddress;
|
||||||
}
|
}
|
||||||
replyMsg = "from " + ipAddress;
|
replyMsg = "from " + ipAddress;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue