Auto-detect available CPU cores if CONCURRENCY_LEVEL is not set.
This commit is contained in:
parent
4011da5b0c
commit
b151240686
@ -8,7 +8,8 @@ if [ "$#" = "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CONCURRENCY_LEVEL" ]; then
|
if [ -z "$CONCURRENCY_LEVEL" ]; then
|
||||||
CONCURRENCY_LEVEL=1
|
# CONCURRENCY_LEVEL=1
|
||||||
|
CONCURRENCY_LEVEL=`grep "^core id" /proc/cpuinfo | sort -u | wc -l`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPTREAL=`realpath "$0"`
|
SCRIPTREAL=`realpath "$0"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user