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
783adeac
Commit
783adeac
authored
Mar 06, 2003
by
Robert Ricci
Browse files
Fixed ordering in interswitch links, so that they come out with the
endpoints in the same order they went in.
parent
3891f842
Changes
1
Hide whitespace changes
Inline
Side-by-side
assign/score.cc
View file @
783adeac
...
...
@@ -628,11 +628,11 @@ int add_node(vvertex vv,pvertex pv, bool deterministic)
resolutions
[
resolution_index
].
type
=
tb_link_info
::
LINK_INTERSWITCH
;
if
(
flipped
)
{
// Order these need to go in depends on flipped bit
resolutions
[
resolution_index
].
plinks
.
push_back
(
second
);
resolutions
[
resolution_index
].
plinks
.
push_front
(
first
);
resolutions
[
resolution_index
].
plinks
.
push_back
(
first
);
resolutions
[
resolution_index
].
plinks
.
push_front
(
second
);
}
else
{
resolutions
[
resolution_index
].
plinks
.
push_front
(
first
);
resolutions
[
resolution_index
].
plinks
.
push_back
(
second
);
resolutions
[
resolution_index
].
plinks
.
push_front
(
second
);
resolutions
[
resolution_index
].
plinks
.
push_back
(
first
);
}
resolution_index
++
;
total_weight
+=
LINK_RESOLVE_INTERSWITCH
;
...
...
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