From 62b62865645725d53f976c6ad0fda12a0056f10a Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 21 Mar 2020 10:45:27 +0000 Subject: [PATCH] Vars refactor: Replace allcores with CORES_HOST --- quickemu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickemu b/quickemu index a690bd8..fe04760 100755 --- a/quickemu +++ b/quickemu @@ -191,10 +191,10 @@ function vm_boot() { fi local cores="1" - local allcores=$(nproc --all) - if [ ${allcores} -ge 8 ]; then + local CORES_HOST=$(nproc --all) + if [ ${CORES_HOST} -ge 8 ]; then cores="4" - elif [ ${allcores} -ge 4 ]; then + elif [ ${CORES_HOST} -ge 4 ]; then cores="2" fi echo " - CPU: ${cores} Core(s)"