Auto-detect available CPU cores if CONCURRENCY_LEVEL is not set.

This commit is contained in:
Markus Birth 2015-05-04 00:38:22 +02:00
parent 4011da5b0c
commit b151240686

View File

@ -8,7 +8,8 @@ if [ "$#" = "0" ]; then
fi
if [ -z "$CONCURRENCY_LEVEL" ]; then
CONCURRENCY_LEVEL=1
# CONCURRENCY_LEVEL=1
CONCURRENCY_LEVEL=`grep "^core id" /proc/cpuinfo | sort -u | wc -l`
fi
SCRIPTREAL=`realpath "$0"`