aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/substitution-goal.cc
diff options
context:
space:
mode:
authorMatej Urbas <matej.urbas@gmail.com>2023-04-30 09:56:24 +0100
committerMatej Urbas <matej.urbas@gmail.com>2023-05-07 20:22:18 +0100
commit613bc699bb72d32c7d0622bf2996b2ecc8012455 (patch)
treeced1d97b8d86ad4e14135204ab4a0bcee6c6b146 /src/libstore/build/substitution-goal.cc
parent89d3cc5a47a448f624ea4c9b43eeee00dcc88a21 (diff)
`max-substitution-jobs` setting
Diffstat (limited to 'src/libstore/build/substitution-goal.cc')
-rw-r--r--src/libstore/build/substitution-goal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/substitution-goal.cc b/src/libstore/build/substitution-goal.cc
index 190fb455a..30c196894 100644
--- a/src/libstore/build/substitution-goal.cc
+++ b/src/libstore/build/substitution-goal.cc
@@ -204,7 +204,7 @@ void PathSubstitutionGoal::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::max(1U, (unsigned int) settings.maxBuildJobs)) {
+ if (worker.getNrSubstitutions() >= std::max(1U, (unsigned int) settings.maxSubstitutionJobs)) {
worker.waitForBuildSlot(shared_from_this());
return;
}