]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
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 78fb2e41a3ba1d57212cedcc4c28743e53eae681..f3b125dfba6b2cb579c1b68572125e48bcfedb7d 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