mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 10:52:19 -05:00
[Fix] ZAPD: Fix 1-core cpu machines in OTR generation tool (#2130)
This commit is contained in:
parent
408143ec8c
commit
816122546b
@ -328,7 +328,7 @@ int main(int argc, char* argv[])
|
|||||||
Directory::ListFiles(Globals::Instance->inputPath.string());
|
Directory::ListFiles(Globals::Instance->inputPath.string());
|
||||||
|
|
||||||
const int num_threads = std::thread::hardware_concurrency();
|
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;
|
bool parseSuccessful;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user