Commit 6df5b4d3 authored by Leigh B Stoller's avatar Leigh B Stoller

Bug fix; assign does not like 0 bw, use 1.

parent b4e49420
...@@ -1945,8 +1945,9 @@ while (($node1,$card1,$port1,$node2,$card2,$port2) = ...@@ -1945,8 +1945,9 @@ while (($node1,$card1,$port1,$node2,$card2,$port2) =
# Zero bandwidth is okay, and causes assign to use the # Zero bandwidth is okay, and causes assign to use the
# no_bandwith error instead of the no_connect error. # no_bandwith error instead of the no_connect error.
# #
if ($bw < 0) { if ($bw <= 0) {
$bw = 0; # Well, zero is not okay, but 1 will do what we need.
$bw = 1;
} }
} }
......
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