Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
3f62a9fb
Commit
3f62a9fb
authored
May 04, 2004
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved where we do detection of reversed links into the function that
makes link conglomerates.
parent
7460fb3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
tbsetup/assign_prepass.in
tbsetup/assign_prepass.in
+6
-3
No files found.
tbsetup/assign_prepass.in
View file @
3f62a9fb
...
...
@@ -944,9 +944,6 @@ sub combine_links($) {
# We do this to get a canonical src, dst ordering
my
(
$csrc
,
$cdst
)
=
sort
{
$a
cmp
$b
}
(
$src
,
$dst
);
if
(
$src
!=
$csrc
)
{
$link
->
{'
reversed
'}
=
1
;
}
push
@
{
$links
{
$csrc
}{
$cdst
}},
$link
;
$totallinks
++
;
}
...
...
@@ -1047,6 +1044,12 @@ sub make_link_conglomerates(@) {
# XXX - Handle flags
# Add to the nodes list
push
@
{
$conglomerate
->
{'
links
'}},
$link
;
# Figure out if it points in the same direction as the rest of the
# links in the conglomerate
if
(
$link
->
{'
src
'}
ne
$conglomerate
->
{'
src
'})
{
$link
->
{'
reversed
'}
=
1
;
}
}
}
...
...
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