wok rev 24008

linux-zram: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 29 16:46:25 2021 +0000 (2 months ago)
parents 296c9ca231aa
children 3c371525f78b
files linux-zram/stuff/compcache linux64-zram/stuff/compcache
line diff
     1.1 --- a/linux-zram/stuff/compcache	Fri Jan 29 15:34:50 2021 +0000
     1.2 +++ b/linux-zram/stuff/compcache	Fri Jan 29 16:46:25 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/ { printf(\"%d\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     1.8 +	awk "/MemTotal/ { printf(\"%u\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     1.9  		< /proc/meminfo > /sys/block/zram$i/disksize
    1.10      done
    1.11      status
     2.1 --- a/linux64-zram/stuff/compcache	Fri Jan 29 15:34:50 2021 +0000
     2.2 +++ b/linux64-zram/stuff/compcache	Fri Jan 29 16:46:25 2021 +0000
     2.3 @@ -25,7 +25,7 @@
     2.4  	END { if (c*s>0) p/=s/c; if (p==0) p++; print p}' /proc/cpuinfo)
     2.5      modprobe zram num_devices=$devices &&
     2.6      for i in $(seq 0 $(($devices-1))); do
     2.7 -	awk "/MemTotal/ { printf(\"%d\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     2.8 +	awk "/MemTotal/ { printf(\"%u\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     2.9  		< /proc/meminfo > /sys/block/zram$i/disksize
    2.10      done
    2.11      status