test
This commit is contained in:
parent
2eed14b972
commit
431f7bf315
|
@ -119,11 +119,7 @@ if check yesno "Do you want to hibernate?" "y"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ramsize="$(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))"
|
ramsize="$(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))"
|
||||||
echo 1 $ramsize
|
|
||||||
ramsize="$(awk "BEGIN { printf(\"%.0f\n\", ${ramsize}/1024); }")"
|
ramsize="$(awk "BEGIN { printf(\"%.0f\n\", ${ramsize}/1024); }")"
|
||||||
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 * 2 ))"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user