]> git.ipfire.org Git - pakfire.git/commitdiff
Run as much parallel jobs as there are CPU cores.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Feb 2012 01:16:36 +0000 (20:16 -0500)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Feb 2012 01:16:36 +0000 (20:16 -0500)
python/pakfire/util.py

index 4bd40beed1df459ff042631c9405f228558eccc6..427c772394dfa6854b218b527c60e19f654777b0 100644 (file)
@@ -301,5 +301,5 @@ def calc_parallelism():
        num = os.sysconf("SC_NPROCESSORS_CONF")
        if num == 1:
                return 2
-       else:
-               return int(round(math.log10(num) * 26))
+
+       return num