Commit 51da6178 authored by Shashi Guruprasad's avatar Shashi Guruprasad

Temporary hack that fixes sub requires_delay() so that delay nodes are

not skipped in the case of 10Mb 0ms links.
parent d0e5378e
...@@ -2067,7 +2067,10 @@ sub requires_delay { ...@@ -2067,7 +2067,10 @@ sub requires_delay {
my $targetbandwidth = $_[0]; my $targetbandwidth = $_[0];
my $bestbandwidth = getbandwidth($targetbandwidth); my $bestbandwidth = getbandwidth($targetbandwidth);
printdb "Checking $bestbandwidth against $targetbandwidth\n"; printdb "Checking $bestbandwidth against $targetbandwidth\n";
if ($bestbandwidth == $targetbandwidth) { # XXX temporary hack: && $bestbandwidth < $S100Kbs
# A delay node is not being added for the 10Mb 0ms link
# Permanent fix required
if ($bestbandwidth == $targetbandwidth && $bestbandwidth < $S100Kbs) {
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment