From 97635e068c5381da66ec3b31926a5d2ddaf53327 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Mon, 1 Jul 2024 00:05:06 +0100 Subject: [PATCH] fix: get rounded integer RAM_HOST values --- quickemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickemu b/quickemu index f2bd9df912..42718ad119 100755 --- a/quickemu +++ b/quickemu @@ -561,7 +561,7 @@ function configure_ram() { RAM_HOST=$(($(sysctl -n hw.memsize) / (1048576*1024))) else # Determine the number of gigabytes of RAM in the host by extracting the first numerical value from the output. - RAM_HOST=$(free --giga -h | tr ' ' '\n' | grep -m 1 "[0-9]" | cut -d'G' -f 1) + RAM_HOST=$(free --giga | tr ' ' '\n' | grep -m 1 "[0-9]" ) fi if [ "${RAM_HOST}" -ge 128 ]; then