Skip to content

Commit

Permalink
fix: get rounded integer RAM_HOST values
Browse files Browse the repository at this point in the history
  • Loading branch information
philclifford committed Jun 30, 2024
1 parent f846d8f commit 97635e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97635e0

Please sign in to comment.