Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
eedcf74f
Commit
eedcf74f
authored
Nov 27, 2001
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to Kbs instead of Mbs when allowing delay configuration changes.
The DB will now hold Kbs.
parent
83c0bfa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utils/delay_config.in
utils/delay_config.in
+4
-4
No files found.
utils/delay_config.in
View file @
eedcf74f
...
...
@@ -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 100
M
b 0ms DropTail]'
\n
",
"
'set link1 [
\$
ns duplex-link
\$
A
\$
B 100
K
b 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 (1
0
-100
000 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
>
100
000
||
$newbw
<
1
0
)
{
usage
();
}
if
(
$debug
)
{
print
"
Setting bandwidth to
$newbw
M
bs.
\n
";
print
"
Setting bandwidth to
$newbw
K
bs.
\n
";
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment