Fixed zram launch on some locales.

pull/37/head
parent 8bfafb97fd
commit 0b9000f0c1

@ -34,7 +34,7 @@ start()
if [[ ${DISKSIZE:-200%} =~ ^([0-9]+)%$ ]]
then
local perc="${BASH_REMATCH[1]}"
local memorysize="$(free -b | awk '{if ($1 == "Mem:") {print $2}}')"
local memorysize="$(LANG=C free -b | awk '{if ($1 == "Mem:") {print $2}}')"
disksize="$(( $memorysize * $perc / 100 ))"
else
disksize="${DISKSIZE}"

Loading…
Cancel
Save