diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index b4e9de74b..f8c8099dc 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -492,9 +492,10 @@ sub process_simple_device() { $command .= " burst $burst"; } else { fatal_error "Missing OUT-BANDWIDTH Burst ($out_part)"; + } if ( defined $latency && $latency ne '' ) { - fatal_error "Invalid latency ($latency)" unless $latency =~ /\d+(s|sec|secs|ms|msec|msecs|us|usec|usecs)$?/ + fatal_error "Invalid latency ($latency)" unless $latency =~ /\d+(s|sec|secs|ms|msec|msecs|us|usec|usecs)$?/; $command .= " latency $latency" } else { fatal_error "Missing OUT-BANDWIDTH Latency ($out_part)";