mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +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
|
# 192MB of memory. Therefore we find out how
|
||||||
# many processes fit into memory.
|
# many processes fit into memory.
|
||||||
local mem_max=$(( ${SYSTEM_MEMORY} / 192 ))
|
local mem_max=$(( ${SYSTEM_MEMORY} / 192 ))
|
||||||
|
local cpu_max=$(( ${SYSTEM_PROCESSORS} + 1 ))
|
||||||
local processors="$(system_processors)"
|
|
||||||
local cpu_max=$(( ${processors} + 1 ))
|
|
||||||
|
|
||||||
local parallelism
|
local parallelism
|
||||||
if [ ${mem_max} -lt ${cpu_max} ]; then
|
if [ ${mem_max} -lt ${cpu_max} ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user