mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 03:34:31 +01:00
Fix a couple of issues with Simple TC
This commit is contained in:
parent
625f254d02
commit
9acec39898
@ -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)";
|
||||
|
Loading…
Reference in New Issue
Block a user