diff options
| author | AltoXorg <56553686+Alto1772@users.noreply.github.com> | 2022-12-10 16:08:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-10 09:08:37 +0100 |
| commit | 4bf37fdd60d8874d48ffdc49f1759de722908aa4 (patch) | |
| tree | 2e6bde630de4743dfdd42a7736641452f10cd0d8 | |
| parent | 7fbbaa2d469a9aeacbbdaa7b63c15a2973bcd579 (diff) | |
[Fix] ZAPD: Fix 1-core cpu machines in OTR generation tool (#2130)
| -rw-r--r-- | ZAPD/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 2f1d5be..d596d05 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -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; |
