Skip to content

Commit

Permalink
Set disk size properly when creating zram device
Browse files Browse the repository at this point in the history
Fixes #58

Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Feb 7, 2021
1 parent 9693730 commit b18b6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zram-config
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b18b6e8

Please sign in to comment.