From d643ca3ce728e93dcaca64ed3013cb7b62ed1fe6 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 21 Mar 2023 19:26:29 -0400 Subject: [PATCH] Fix swap size recommendations --- lug-helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index c2dae50..1fa0335 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -901,11 +901,11 @@ memory_check() { # 40GB or more of RAM preflight_pass+=("Your system has ${memtotal}GB of memory.") elif [ "${memtotal%.*}" -ge "31" ]; then - # 32GB or more of RAM, 16GB swap recommended - if [ "${swaptotal%.*}" -ge "15" ]; then + # 32GB or more of RAM, 8GB swap recommended + if [ "${swaptotal%.*}" -ge "7" ]; then preflight_pass+=("Your system has ${memtotal}GB memory and ${swaptotal}GB swap.") else - preflight_fail+=("Your system has ${memtotal}GB memory and ${swaptotal}GB swap.\nWe recommend at least 16GB swap to avoid crashes.") + preflight_fail+=("Your system has ${memtotal}GB memory and ${swaptotal}GB swap.\nWe recommend at least 8GB swap to avoid crashes.") fi elif [ "${memtotal%.*}" -ge "15" ]; then # 16GB or more of RAM, 24GB swap recommended