Commit 422100be authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Sanity check bandwidth number

parent 0cd2ea1b
......@@ -1820,6 +1820,9 @@ while (($node1,$card1,$port1,$node2,$card2,$port2) =
if ($sharing_mode{$node1}) {
$bw =
$interfacestate{"$node1:$iface1"}->{'remaining_bandwidth'};
if ($bw < 0) {
$bw = 0;
}
next
if ($bw == 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