forked from extern/shorewall_code
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";
|
$command .= " burst $burst";
|
||||||
} else {
|
} else {
|
||||||
fatal_error "Missing OUT-BANDWIDTH Burst ($out_part)";
|
fatal_error "Missing OUT-BANDWIDTH Burst ($out_part)";
|
||||||
|
}
|
||||||
|
|
||||||
if ( defined $latency && $latency ne '' ) {
|
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"
|
$command .= " latency $latency"
|
||||||
} else {
|
} else {
|
||||||
fatal_error "Missing OUT-BANDWIDTH Latency ($out_part)";
|
fatal_error "Missing OUT-BANDWIDTH Latency ($out_part)";
|
||||||
|
Loading…
Reference in New Issue
Block a user