wok diff linux-zram/stuff/compcache @ rev 25378

updated ufw (0.36 -> 0.36.1)
author Hans-G?nter Theisgen
date Sat Jul 30 15:14:33 2022 +0100 (2022-07-30)
parents 87b5f192a581
children
line diff
     1.1 --- a/linux-zram/stuff/compcache	Fri Jan 29 16:46:25 2021 +0000
     1.2 +++ b/linux-zram/stuff/compcache	Sat Jul 30 15:14:33 2022 +0100
     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/ { printf(\"%u\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     1.8 +	awk "/MemTotal/ { printf(\"%uk\\n\", \$2 * ${SIZE%\%} / 100 / $devices) }" \
     1.9  		< /proc/meminfo > /sys/block/zram$i/disksize
    1.10      done
    1.11      status