wok diff linux-zram/stuff/compcache @ rev 22396
Use gcc83
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 20:56:15 2019 +0100 (2019-12-06) |
parents | 5cfd86a4f9d1 |
children | a1821e12e28a |
line diff
1.1 --- a/linux-zram/stuff/compcache Thu Nov 28 07:37:48 2019 +0100 1.2 +++ b/linux-zram/stuff/compcache Fri Dec 06 20:56:15 2019 +0100 1.3 @@ -21,7 +21,8 @@ 1.4 END { if (c>0) p=c; if (p==0) p++; print p }' /proc/cpuinfo) 1.5 modprobe zram num_devices=$devices && 1.6 [ -n "$SIZE_KB" ] && for i in $(seq 0 $(($devices-1))); do 1.7 - echo $(($SIZE_KB * 1024 / $devices)) > /sys/block/zram$i/disksize 1.8 + awk "END { print $SIZE_KB * 1024 / $devices }" < /dev/null \ 1.9 + > /sys/block/zram$i/disksize 1.10 done 1.11 status 1.12