summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/ShaperClass.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-20 15:18:37 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-20 15:18:37 -0700
commitf0ca26cf62a84dc1dfad98a085d027d4ed9488f1 (patch)
treeeda20d52a272ad568f8e583a23528a4755fed611 /lib/Vyatta/Qos/ShaperClass.pm
parentd05887ea055bec73773f71edec4f88491b0b9043 (diff)
downloadvyatta-cfg-qos-f0ca26cf62a84dc1dfad98a085d027d4ed9488f1.tar.gz
vyatta-cfg-qos-f0ca26cf62a84dc1dfad98a085d027d4ed9488f1.zip
Fix message when random-detect bandwidth is too low
Diffstat (limited to 'lib/Vyatta/Qos/ShaperClass.pm')
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index a495863..f895239 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -187,9 +187,10 @@ sub redValidate {
my $minbw = ( 3 * AVGPKT * 8 ) / LATENCY;
print STDERR "Configuration error in: $level\n";
- die
+ printf STDERR
"Random-detect queue type requires effective bandwidth of %d Kbit/sec or greater\n",
$minbw;
+ exit 1;
}
}