phase1: do not exceed nproc build concurrency
[buildbot.git] / phase1 / master.cfg
index e00a896a77c51fa2d8240d3a4871afd9b22b4bb5..cb0e70910fba9a7fdadc5e2d9c131bdd9772e745 100644 (file)
@@ -272,7 +272,7 @@ def GetVersionPrefix(props):
 
 def GetNumJobs(props):
        if props.hasProperty("slavename") and props.hasProperty("nproc"):
-               return ((int(props["nproc"]) / (max_builds[props["slavename"]] + other_builds)) + 1)
+               return (int(props["nproc"]) / (max_builds[props["slavename"]] + other_builds))
        else:
                return 1