From 6736b2088a169d10e179e561e603e9e6993513fa Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 16 Jun 2009 16:55:50 -0700 Subject: random-detect needs qmax > qmin Need some space to compute RED parameters Bug 4594 (cherry picked from commit 603752d0771c2bdaf77e18e0f65135ac090fde85) --- lib/Vyatta/Qos/RandomDetect.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Vyatta') 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; } -- cgit v1.2.3