Commit 62e5b6e6 authored by Abel Ureta-Vidal's avatar Abel Ureta-Vidal
Browse files

In synchronize_AnalysisStats method, added a POSIX::ceil when setting the...

In synchronize_AnalysisStats method, added a POSIX::ceil when setting the num_required_workers for an AnalysisStats object
parent 8cfe3d0f
......@@ -279,7 +279,7 @@ sub synchronize_AnalysisStats {
if($status eq 'READY') {
$analysisStats->unclaimed_job_count($count);
my $numWorkers = $count/$analysisStats->batch_size;
my $numWorkers = POSIX::ceil($count/$analysisStats->batch_size);
$numWorkers=1 if($numWorkers<1);
if($analysisStats->hive_capacity>0 and $numWorkers > $analysisStats->hive_capacity) {
$numWorkers=$analysisStats->hive_capacity;
......
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