wok-current diff linux64-zram/stuff/compcache @ rev 22820
created recipe for xprintidle-2.1
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 05 15:08:31 2020 +0100 (2020-02-05) |
parents | 5cfd86a4f9d1 |
children | a1821e12e28a |
line diff
1.1 --- a/linux64-zram/stuff/compcache Thu Nov 28 07:37:48 2019 +0100 1.2 +++ b/linux64-zram/stuff/compcache Wed Feb 05 15:08:31 2020 +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