This commit is contained in:
teldra 2021-08-18 08:42:06 +02:00
parent 1c46a3730b
commit 4a1d9db75e

View File

@ -125,7 +125,7 @@ echo 2 $ramsize
set -x
if [[ "${ramsize}" -gt "0" ]] || [[ "${ramsize}" -le "2" ]]; then
if [[ "${ramsize}" -gt "0" ]] && [[ "${ramsize}" -le "2" ]]; then
test -z "${hibernate}" && swapsize="$(( ramsize * 2 ))"
test -z "${hibernate}" || swapsize="$(( ramsize * 3 ))"
elif [[ "${ramsize}" -gt "2" ]] && [[ "${ramsize}" -le "8" ]]; then