diff --git a/src/terrama2/services/analysis/core/Service.cpp b/src/terrama2/services/analysis/core/Service.cpp index 1f5dfdbb8..218f42d53 100644 --- a/src/terrama2/services/analysis/core/Service.cpp +++ b/src/terrama2/services/analysis/core/Service.cpp @@ -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)); }