From 28ab3749ca9ee5db1f62b107bdb570d20c908def Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 13 Jun 2012 13:47:31 -0700 Subject: [PATCH] Allow fractional delays in TC 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 c5418e947..4303c16bc 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -1002,7 +1002,7 @@ sub convert_delay( $ ) { my $delay = shift; return 0 unless $delay; - return $1 if $delay =~ /^(\d+)(ms)?$/; + return $1 if $delay =~ /^(\d+(\.\d+)?)(ms)?$/; fatal_error "Invalid Delay ($delay)"; }