Fix a couple of issues with Simple TC

This commit is contained in:
Tom Eastep 2010-06-12 13:50:11 -07:00
parent 625f254d02
commit 9acec39898

View File

@ -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)";