Skip to content

Commit

Permalink
Merge pull request #1556 from TerraMA2/b4.0
Browse files Browse the repository at this point in the history
 limit number of analysis threads
  • Loading branch information
janosimas authored May 8, 2018
2 parents 0cf14bf + e14fb6d commit 8163bc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/terrama2/services/analysis/core/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ void terrama2::services::analysis::core::Service::connectDataManager()
void terrama2::services::analysis::core::Service::start(size_t threadNumber)
{
terrama2::core::Service::start(threadNumber);
threadPool_.reset(new ThreadPool(processingThreadPool_.size()));
threadNumber = std::ceil((threadNumber)/2);
threadPool_.reset(new ThreadPool(threadNumber));
}

void terrama2::services::analysis::core::Service::erasePreviousResult(terrama2::core::ProcessPtr process, std::shared_ptr<te::dt::TimeInstantTZ> timestamp) const
Expand Down

0 comments on commit 8163bc7

Please sign in to comment.