From: Michael Tremer Date: Mon, 4 Mar 2019 11:38:38 +0000 (+0000) Subject: make.sh: Use variable instead of calling system_processors function again X-Git-Tag: v2.23-core131~156 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=e4ee36fa170d08bccbbd32fe0d56e53f072a2f97 make.sh: Use variable instead of calling system_processors function again Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index 78fb2e41a3..f3b125dfba 100755 --- a/make.sh +++ b/make.sh @@ -206,9 +206,7 @@ configure_build() { # 192MB of memory. Therefore we find out how # many processes fit into memory. local mem_max=$(( ${SYSTEM_MEMORY} / 192 )) - - local processors="$(system_processors)" - local cpu_max=$(( ${processors} + 1 )) + local cpu_max=$(( ${SYSTEM_PROCESSORS} + 1 )) local parallelism if [ ${mem_max} -lt ${cpu_max} ]; then