Commit eedcf74f authored by Leigh B. Stoller's avatar Leigh B. Stoller

Change to Kbs instead of Mbs when allowing delay configuration changes.

The DB will now hold Kbs.
parent 83c0bfa3
......@@ -14,9 +14,9 @@ sub usage()
" pid = Project ID\n",
" eid = Experiment ID\n",
" link = link name from ns file, ie. 'link1' in\n",
" 'set link1 [\$ns duplex-link \$A \$B 100Mb 0ms DropTail]'\n",
" 'set link1 [\$ns duplex-link \$A \$B 100Kb 0ms DropTail]'\n",
" -d = one-way link delay in milliseconds greater than 1\n",
" -b = <NNN> N=bandwidth (1-100 Mbs)\n",
" -b = <NNN> N=bandwidth (10-100000 Kbits per second)\n",
" -l = packet loss rate (0 <= plr < 1)\n",
" -p = Select one of the pipes. 0 - packets received on iface0\n";
......@@ -167,12 +167,12 @@ if (defined($options{"b"})) {
die("Illegal bw spec: $newbw.\n");
}
if ($newbw > 100 || $newbw < 1) {
if ($newbw > 100000 || $newbw < 10) {
usage();
}
if ($debug) {
print "Setting bandwidth to $newbw Mbs.\n";
print "Setting bandwidth to $newbw Kbs.\n";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment