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
...@@ -350,7 +350,7 @@ sub batch_size { ...@@ -350,7 +350,7 @@ sub batch_size {
$stats->update; $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 = 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 $batch_size = 1 if($batch_size < 1); # make sure we grab at least one job
......
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