summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-16 16:55:50 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-16 16:55:50 -0700
commit603752d0771c2bdaf77e18e0f65135ac090fde85 (patch)
tree461613643671936e479b6eb40b5cf33464da5850
parentb1b823012b2a1aa0fa8578054fc1179f92a32c2f (diff)
downloadvyatta-cfg-qos-603752d0771c2bdaf77e18e0f65135ac090fde85.tar.gz
vyatta-cfg-qos-603752d0771c2bdaf77e18e0f65135ac090fde85.zip
random-detect needs qmax > qmin
Need some space to compute RED parameters Bug 4594
-rw-r--r--lib/Vyatta/Qos/RandomDetect.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Qos/RandomDetect.pm b/lib/Vyatta/Qos/RandomDetect.pm
index 6e6dad0..e7f16f3 100644
--- a/lib/Vyatta/Qos/RandomDetect.pm
+++ b/lib/Vyatta/Qos/RandomDetect.pm
@@ -64,8 +64,8 @@ sub getPrecedence {
$pred{qmin} = $config->returnValue('minimum-threshold');
if ($pred{qmin}) {
- die "min-threshold: $pred{qmin} > max-threshold: $pred{qmax}\n"
- if ($pred{qmin} > $pred{qmax});
+ die "min-threshold: $pred{qmin} >= max-threshold: $pred{qmax}\n"
+ if ($pred{qmin} >= $pred{qmax});
} else {
$pred{qmin} = ((9 + $i) * $pred{qmax})/ 18;
}