[Fix] ZAPD: Fix 1-core cpu machines in OTR generation tool (#2130)
This commit is contained in:
@@ -328,7 +328,7 @@ int main(int argc, char* argv[])
|
||||
Directory::ListFiles(Globals::Instance->inputPath.string());
|
||||
|
||||
const int num_threads = std::thread::hardware_concurrency();
|
||||
ctpl::thread_pool pool(num_threads / 2);
|
||||
ctpl::thread_pool pool(num_threads > 1 ? num_threads / 2 : 1);
|
||||
|
||||
bool parseSuccessful;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user