From 202a4fd6ca04f7fb9575b64c489f0161cba9aa73 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Sun, 24 Mar 2013 15:33:32 +0100 Subject: [PATCH] don't increase concurrency if more than one worker is inactive --- atom | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atom b/atom index bde01c2..2b008e1 100755 --- a/atom +++ b/atom @@ -1435,7 +1435,8 @@ then fi getConfig -set -eH +set -e +set +H if (( debug )) then cat <<-EOF @@ -1838,7 +1839,7 @@ do then concurrencychange=$(date +%s) (( --concurrency )) - elif (( load < maxload )) + elif (( load < maxload )) && (( active > concurrency - 1 )) then concurrencychange=$(date +%s) (( ++concurrency ))