diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-28 16:20:46 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-28 16:21:54 +0200 |
commit | a1a5e63e1456b5905b73065f635a324f3c309a5d (patch) | |
tree | af3f79868a78e06a36748896f166251474df033f /src/libstore/build.cc | |
parent | 41c4558afe04d1cad0d0ef3b18a1a8155b40b06e (diff) |
Fix brainfart
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 9bf1ab5aa..01a3203dd 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3379,7 +3379,7 @@ void SubstitutionGoal::tryToRun() if maxBuildJobs == 0 (no local builds allowed), we still allow a substituter to run. This is because substitutions cannot be distributed to another machine via the build hook. */ - if (worker.getNrLocalBuilds() >= std::min(1U, (unsigned int) settings.maxBuildJobs)) { + if (worker.getNrLocalBuilds() >= std::max(1U, (unsigned int) settings.maxBuildJobs)) { worker.waitForBuildSlot(shared_from_this()); return; } |