Skip to content
GitLab
Menu
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
c823433d
Commit
c823433d
authored
Mar 29, 2007
by
Robert Ricci
Browse files
Fix a bug that Keith stumbled onto - zero and negative bandwidths are
illegal.
parent
835db847
Changes
1
Show whitespace changes
Inline
Side-by-side
assign/parse_ptop.cc
View file @
c823433d
...
...
@@ -244,6 +244,10 @@ int parse_ptop(tb_pgraph &PG, tb_sgraph &SG, istream& i)
ptop_error
(
"Bad link line, bad delay characteristics."
);
}
if
(
ibw
<=
0
)
{
ptop_error
(
"Bad link line - negative or zero bandwidth."
);
}
#define ISSWITCH(n) (n->types.find("switch") != n->types.end())
// Check to make sure the nodes in the link actually exist
if
(
pname2vertex
.
find
(
src
)
==
pname2vertex
.
end
())
{
...
...
Write
Preview
Supports
Markdown
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