phase2: do not exceed nproc build concurrency
[buildbot.git] / phase2 / master.cfg
index 5e8b71cb9f9f42a83970814e917009cd2e876cf6..7342363a4dd87f8245b0c89e77c6041fd668d677 100644 (file)
@@ -289,7 +289,7 @@ def GetDirectorySuffix(props):
 
 def GetNumJobs(props):
        if props.hasProperty("workername") and props.hasProperty("nproc"):
-               return ((int(props["nproc"]) / max_builds[props["workername"]]) + 1)
+               return (int(props["nproc"]) / max_builds[props["workername"]])
        else:
                return 1