phase2: do not exceed nproc build concurrency
authorThibaut VARÈNE <hacks@slashdirt.org>
Sat, 11 Nov 2023 15:12:37 +0000 (16:12 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 16 Nov 2023 08:57:19 +0000 (09:57 +0100)
Align with phase1 (2ad0478)

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
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