summaryrefslogtreecommitdiff
path: root/src/libctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-10-31 11:57:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2021-10-31 11:57:42 +0100
commit406e1b1eeb2a760c0b89ff141a183c78d113a5e4 (patch)
tree527bc53441b579d0858e49be40fc02d15fed7e60 /src/libctor.cc
parentbc474f716407dec521626e76b6101df4a2f1a40a (diff)
Make sure parallel_processes works correctly if std::thread::hardware_concurrency() retuns 0.
Diffstat (limited to 'src/libctor.cc')
-rw-r--r--src/libctor.cc3
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);