From 22aec9f9fabae0464dd02ad7c8bc8ff6eda623eb Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 6 Jan 2012 09:14:07 -0800 Subject: [PATCH] Make '0' equivalent to '-' in the IN_BANDWIDTH column Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 44672be67..ee8b30c19 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -546,7 +546,7 @@ sub calculate_quantum( $$ ) { sub process_in_bandwidth( $ ) { my $in_rate = shift; - return 0 if $in_rate eq '-'; + return 0 if $in_rate eq '-' or $in_rate eq '0'; my $in_burst = '10kb'; my $in_avrate = 0;