diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-10-31 11:57:42 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-10-31 11:57:42 +0100 |
commit | 406e1b1eeb2a760c0b89ff141a183c78d113a5e4 (patch) | |
tree | 527bc53441b579d0858e49be40fc02d15fed7e60 | |
parent | bc474f716407dec521626e76b6101df4a2f1a40a (diff) |
Make sure parallel_processes works correctly if std::thread::hardware_concurrency() retuns 0.
-rw-r--r-- | src/libctor.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libctor.cc b/src/libctor.cc index 0ec6c6c..84a5fae 100644 --- a/src/libctor.cc +++ b/src/libctor.cc @@ -33,8 +33,7 @@ int main(int argc, char* argv[]) settings.builddir = getConfiguration(cfg::builddir, settings.builddir); settings.parallel_processes = - std::max(1u, std::thread::hardware_concurrency() * 2 - 1); - + std::max(1u, std::thread::hardware_concurrency()) * 2 - 1; if(argc > 1 && std::string(argv[1]) == "configure") { return configure(settings, argc, argv); |