Commit 7db2cce6 authored by Dan Gebhardt's avatar Dan Gebhardt

Changed the safety checks for bw test period/duration to help in our

own flexlab stuff for the time being.
parent e0644cbb
......@@ -297,9 +297,9 @@ sub isCmdValid($)
#for now, just limit duration if bw period is low
if( $cmdref->{testper} < 600 &&
$cmdref->{duration} > 120 )
$cmdref->{duration} > 1200 )
{
$cmdref->{duration} = "120";
$cmdref->{duration} = "1200";
$cmdref->{testper} = "600";
}
#limit duration, if testper is given with a duty-cycle
......@@ -307,7 +307,8 @@ sub isCmdValid($)
elsif( $cmdref->{duration} > 120 &&
$cmdref->{testper} < ($numDest-1) * 5 * 1/.20 )
{
$cmdref->{duration} = "120";
#TODO: Commented out to prevent problems in our own tests.
#$cmdref->{duration} = "120";
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment