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
|
||||
|
||||
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"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user