mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-09-20 00:02:03 +02:00
Vars refactor: Replace allcores with CORES_HOST
This commit is contained in:
parent
bd987f55d2
commit
62b6286564
6
quickemu
6
quickemu
|
@ -191,10 +191,10 @@ function vm_boot() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local cores="1"
|
local cores="1"
|
||||||
local allcores=$(nproc --all)
|
local CORES_HOST=$(nproc --all)
|
||||||
if [ ${allcores} -ge 8 ]; then
|
if [ ${CORES_HOST} -ge 8 ]; then
|
||||||
cores="4"
|
cores="4"
|
||||||
elif [ ${allcores} -ge 4 ]; then
|
elif [ ${CORES_HOST} -ge 4 ]; then
|
||||||
cores="2"
|
cores="2"
|
||||||
fi
|
fi
|
||||||
echo " - CPU: ${cores} Core(s)"
|
echo " - CPU: ${cores} Core(s)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user