From 5ddb197680609e0749ae9c4409bf513b8c2b50b4 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 5893c30dc..60fb5f8d7 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -547,7 +547,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;