Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
9fd70424
Commit
9fd70424
authored
Jan 20, 2001
by
Mac Newbold
Browse files
Fixed use of variables that aren't always defined.
parent
5c9a6444
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ir/assign_wrapper.in
View file @
9fd70424
...
...
@@ -126,12 +126,15 @@ foreach (split("\n",$raw)) {
push
(
@$nodes_tmp
,
$_
);
}
$links_tmp
=
[]
;
foreach
(
split
("
",
$links_raw
))
{
if
(
defined
$links_raw
)
{
foreach
(
split
("
",
$links_raw
))
{
push
(
@$links_tmp
,
$_
);
}
}
$delay
=~
s/[mM][sS]$//
;
$bw
=~
s/[mM][bB]$//
;
printdb
"
lans{
$lan
} = [
$nodes_raw
,
$bw
,
$delay
,
$loss
,
$links_raw
]
\n
";
printdb
"
lans{
$lan
} = [
$nodes_raw
,
$bw
,
$delay
,
$loss
"
.
(
defined
$links_raw
?
"
,
$links_raw
"
:
"")
.
"
]
\n
";
$lans
{
$lan
}
=
[
$nodes_tmp
,
$bw
,
$delay
,
$loss
,
$links_tmp
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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