Skip to content

Commit

Permalink
round up number of threads
Browse files Browse the repository at this point in the history
  • Loading branch information
janosimas committed May 3, 2018
1 parent 88caae1 commit 30dc5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrama2/services/analysis/core/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void terrama2::services::analysis::core::Service::connectDataManager()
void terrama2::services::analysis::core::Service::start(size_t threadNumber)
{
terrama2::core::Service::start(threadNumber);
threadNumber = verifyNumberOfThreads(threadNumber)/2;
threadNumber = std::ceil((threadNumber)/2);
threadPool_.reset(new ThreadPool(threadNumber));
}

Expand Down

0 comments on commit 30dc5b4

Please sign in to comment.