From 3f62a9fb682b419e1b2309dded8d35faaea2e5aa Mon Sep 17 00:00:00 2001 From: Robert Ricci Date: Tue, 4 May 2004 17:00:30 +0000 Subject: [PATCH] Moved where we do detection of reversed links into the function that makes link conglomerates. --- tbsetup/assign_prepass.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tbsetup/assign_prepass.in b/tbsetup/assign_prepass.in index d9566bc37..3a4c7cf2e 100755 --- a/tbsetup/assign_prepass.in +++ b/tbsetup/assign_prepass.in @@ -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; + } } } -- GitLab