From 3e233de780578dbded33bb1e356bfcd41d8f2aab Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Fri, 2 Jan 2026 08:45:01 -0500 Subject: [PATCH] Changed maximum SWAP size from 32GiB to 16GiB --- partition.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partition.sh b/partition.sh index 9afa63e..23378bb 100755 --- a/partition.sh +++ b/partition.sh @@ -46,8 +46,8 @@ if [[ "${1}" == '--disk' ]]; then if [[ "${enableSwap}" == "yes" ]]; then swapSize="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))" - if [[ "${swapSize#}" -gt '32' ]]; then - swapSize='32' + if [[ "${swapSize#}" -gt '16' ]]; then + swapSize='16' fi sgdisk \