Fix latency parsing

This commit is contained in:
Tom Eastep 2010-06-25 16:10:26 -07:00
parent ed72afd8a0
commit 914d752f1d

View File

@ -495,7 +495,7 @@ sub process_simple_device() {
}
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)";