From b151240686d8d6e25964f7711836c8416517f600 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Mon, 4 May 2015 00:38:22 +0200 Subject: [PATCH] Auto-detect available CPU cores if CONCURRENCY_LEVEL is not set. --- convert.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert.sh b/convert.sh index 36f9a3a..d012e69 100755 --- a/convert.sh +++ b/convert.sh @@ -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"`