diff options
-rwxr-xr-x | debian/calc-max-parallel.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/debian/calc-max-parallel.sh b/debian/calc-max-parallel.sh index 947701c87..796ba4e88 100755 --- a/debian/calc-max-parallel.sh +++ b/debian/calc-max-parallel.sh @@ -11,7 +11,7 @@ if [ ""$(dpkg-architecture -qDEB_HOST_ARCH_BITS) = 32 ] ; then exit 0 fi -total_ram=$(grep MemTotal /proc/meminfo | awk '{ print $2 }') +ram_total=$(grep MemTotal /proc/meminfo | awk '{ print $2 }') ram_512gb=$((512*1024*1024)) ram_256gb=$((256*1024*1024)) @@ -24,25 +24,25 @@ ram_16gb=$((16*1024*1024)) ram_8gb=$((8*1024*1024)) ram_4gb=$((4*1024*1024)) -if [ ${total_ram} -le ${ram_4gb} ]; then +if [ ${ram_total} -le ${ram_4gb} ]; then echo "--max-parallel=1" -elif [ ${total_ram} -le ${ram_8gb} ]; then +elif [ ${ram_total} -le ${ram_8gb} ]; then echo "--max-parallel=2" -elif [ ${total_ram} -le ${ram_16gb} ]; then +elif [ ${ram_total} -le ${ram_16gb} ]; then echo "--max-parallel=3" -elif [ ${total_ram} -le ${ram_32gb} ]; then +elif [ ${ram_total} -le ${ram_32gb} ]; then echo "--max-parallel=12" -elif [ ${total_ram} -le ${ram_48gb} ]; then +elif [ ${ram_total} -le ${ram_48gb} ]; then echo "--max-parallel=20" -elif [ ${total_ram} -le ${ram_64gb} ]; then +elif [ ${ram_total} -le ${ram_64gb} ]; then echo "--max-parallel=32" -elif [ ${total_ram} -le ${ram_96gb} ]; then +elif [ ${ram_total} -le ${ram_96gb} ]; then echo "--max-parallel=48" -elif [ ${total_ram} -le ${ram_128gb} ]; then +elif [ ${ram_total} -le ${ram_128gb} ]; then echo "--max-parallel=64" -elif [ ${total_ram} -le ${ram_256gb} ]; then +elif [ ${ram_total} -le ${ram_256gb} ]; then echo "--max-parallel=128" -elif [ ${total_ram} -le ${ram_512gb} ]; then +elif [ ${ram_total} -le ${ram_512gb} ]; then echo "--max-parallel=256" else echo "--max-parallel=512" |