Skip to content
Snippets Groups Projects
Commit 03cf556e authored by Jessica Severin's avatar Jessica Severin
Browse files

switched the 'auto batch_size' to be turned on by any batch_size <=0

parent 0cda7105
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,7 @@ sub batch_size {
$stats->update;
}
if(($batch_size == 0) and ($stats->avg_msec_per_job)) {
if(($batch_size <= 0) and ($stats->avg_msec_per_job)) {
$batch_size = int(120000 / $stats->avg_msec_per_job); # num jobs in 120 secs
}
$batch_size = 1 if($batch_size < 1); # make sure we grab at least one job
......
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