From a7a3f236397bbc6e40b390ef9190e09c45e2446c Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Sat, 5 Aug 2017 00:20:07 -0500 Subject: [PATCH] Smaller minimum swap size --- slib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slib.sh b/slib.sh index 683c1af..06fbc73 100644 --- a/slib.sh +++ b/slib.sh @@ -562,7 +562,7 @@ memory_ok () { mem_total=$(awk '/MemTotal/ {print $2}' /proc/meminfo) swap_total=$(awk '/SwapTotal/ {print $2}' /proc/meminfo) all_mem=$((mem_total + swap_total)) - swap_min=$(( 1572864 - all_mem )) + swap_min=$(( 1286144 - all_mem )) if [ "$swap_min" -lt '262144' ]; then swap_min=262144