From b18b6e84467ca354d8e071c457ad23fb9bbe0bce Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Sun, 7 Feb 2021 11:37:54 -0700 Subject: [PATCH] Set disk size properly when creating zram device Fixes #58 Signed-off-by: Ethan Dye --- zram-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zram-config b/zram-config index fa5b1ab..d74a790 100755 --- a/zram-config +++ b/zram-config @@ -20,7 +20,7 @@ createZdevice() { fi fi - zramctl --size "$MEM_SIZE" --algorithm "$ALG" "/dev/zram${RAM_DEV}" + zramctl --size "$DISK_SIZE" --algorithm "$ALG" "/dev/zram${RAM_DEV}" if [[ -n $MEM_SIZE ]]; then echo "$MEM_SIZE" > "/sys/block/zram${RAM_DEV}/mem_limit"