From 2d39df3601d483adf42145e6736563806ba4378b Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 4 Aug 2022 21:05:01 -0600 Subject: [PATCH] racing original --- functions/update_apps.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index ceedeaed..f7ca7045 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -24,12 +24,12 @@ do ((count++)) done if [[ "$proc_count" -ge "$update_limit" ]]; then - sleep 10 + sleep 6 elif [[ $it -lt ${#array[@]} ]]; then until [[ "$proc_count" -ge "$update_limit" || $it -ge ${#array[@]} ]] do update_apps "${array[$it]}" & - sleep 2 + sleep 1 processes+=($!) ((it++)) ((proc_count++)) @@ -38,10 +38,10 @@ do if [[ $ttl -eq 1 ]]; then sleep 20 else - sleep 10 + sleep 6 fi elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish - sleep 10 + sleep 6 else # All processes must be completed, break out of loop break fi