Skip to content

Commit

Permalink
Let mlim -S be in megabytes as documented (not in bytes)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Feb 23, 2021
1 parent d5c1840 commit 24949d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Karol Herbst <git at karolherbst.de>
ko-zu
Thomas Kear
Jan Palus <atler at pid-linux.org> (avoid shell calculation)
Zolran Puskas (https://github.com/zpuskas) (observe mlimit not in Mb)
Kriss (https://github.com/Kr1ss-XD) (fix installing the localized manpages)
Mattéo Rossillol‑‑Laruelle <beatussum at protonmail.com> (https://github.com/beatussum) (XFS support, Makefile, i18n support, Makefile, French translation)
Edlund Scott <at sredlund>
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog for zram-init:

*zram-init-10.10:
Martin Väth <martin at mvath.de>:
- Let mlim (-S) actually be in megabytes as documented (not in bytes).
See https://github.com/vaeth/zram-init/issues/32.

*zram-init-10.9:
Martin Väth <martin at mvath.de>:
- Workaround for zsh completion heuristics for init.d scripts.
Expand Down
2 changes: 1 addition & 1 deletion sbin/zram-init.in
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ else [ -z "$streams" ] || SysCtl "$streams" "$block/max_comp_streams" \
}
! $writeback || InitWriteback
fi
[ -z "$mem_limit" ] || SysCtl "$mem_limit" "$block/mem_limit" || \
[ -z "$mem_limit" ] || SysCtl "$[mem_limit}M" "$block/mem_limit" || \
xWarning 'failed to set zram${dev} mem_limit'

eval "set -- a $mkfs_opt"
Expand Down

0 comments on commit 24949d8

Please sign in to comment.