diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-16 16:55:50 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@lenny.localdomain> | 2009-10-01 13:51:21 -0700 |
commit | 6736b2088a169d10e179e561e603e9e6993513fa (patch) | |
tree | 7a6ab1997bc0127512a37f176649e52e2f4d9db2 /lib/Vyatta/Qos/RandomDetect.pm | |
parent | e6eafcc5c3251c2c1afa9cc3b0638be442856fca (diff) | |
download | vyatta-cfg-qos-6736b2088a169d10e179e561e603e9e6993513fa.tar.gz vyatta-cfg-qos-6736b2088a169d10e179e561e603e9e6993513fa.zip |
random-detect needs qmax > qmin
Need some space to compute RED parameters
Bug 4594
(cherry picked from commit 603752d0771c2bdaf77e18e0f65135ac090fde85)
Diffstat (limited to 'lib/Vyatta/Qos/RandomDetect.pm')
-rw-r--r-- | lib/Vyatta/Qos/RandomDetect.pm | 4 |
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; } |