Skip to content

Commit

Permalink
Smaller minimum swap size
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Aug 5, 2017
1 parent 000f159 commit a7a3f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ memory_ok () {
mem_total=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
swap_total=$(awk '/SwapTotal/ {print $2}' /proc/meminfo)
all_mem=$((mem_total + swap_total))
swap_min=$(( 1572864 - all_mem ))
swap_min=$(( 1286144 - all_mem ))

if [ "$swap_min" -lt '262144' ]; then
swap_min=262144
Expand Down

0 comments on commit a7a3f23

Please sign in to comment.