wok rev 24000

linux-zram: more than 8GB RAM fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 13 21:31:22 2021 +0000 (9 months ago)
parents 5c1ce90eb1d6
children 67987cd1245b
files linux-zram/stuff/compcache
line diff
     1.1 --- a/linux-zram/stuff/compcache	Tue Jan 12 07:47:12 2021 +0000
     1.2 +++ b/linux-zram/stuff/compcache	Wed Jan 13 21:31:22 2021 +0000
     1.3 @@ -25,7 +25,7 @@
     1.4  	END { if (c*s>0) p/=s/c; if (p==0) p++; print p}' /proc/cpuinfo)
     1.5      modprobe zram num_devices=$devices &&
     1.6      for i in $(seq 0 $(($devices-1))); do
     1.7 -	awk "/MemTotal/ { print \$2 * 1024 * ${SIZE%\%} / 100 / $devices }" \
     1.8 +	awk "/MemTotal/ { printf(\"%d\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     1.9  		< /proc/meminfo > /sys/block/zram$i/disksize
    1.10      done
    1.11      status