Skip to content

Commit

Permalink
Fix brainfart
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 28, 2017
1 parent 41c4558 commit a1a5e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/build.cc
Expand Up @@ -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;
}
Expand Down

0 comments on commit a1a5e63

Please sign in to comment.