make.sh: Use variable instead of calling system_processors function again
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Mar 2019 11:38:38 +0000 (11:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Mar 2019 11:38:38 +0000 (11:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 78fb2e4..f3b125d 100755 (executable)
--- 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