mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
make.sh: Use variable instead of calling system_processors function again
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
4
make.sh
4
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
|
||||
|
||||
Reference in New Issue
Block a user