From: Michael Tremer Date: Mon, 6 Feb 2012 01:16:36 +0000 (-0500) Subject: Run as much parallel jobs as there are CPU cores. X-Git-Tag: 0.9.20~14^2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7db0806f922b31967a958fe8d58c97d2de848592;p=pakfire.git Run as much parallel jobs as there are CPU cores. --- diff --git a/python/pakfire/util.py b/python/pakfire/util.py index 4bd40beed..427c77239 100644 --- a/python/pakfire/util.py +++ b/python/pakfire/util.py @@ -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