From 98b0d61d092f4bb5422522bf7de0faa619726a88 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 15:15:15 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 79b8480..8498b39 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -148,7 +148,7 @@ CHECK(){ fi started_hosts=0 for hostname in "${hostnames_sort[@]}"; do - # while [ $(jobs -rp | wc -l) -ge 15 ]; do sleep 0.5; done + while [ $(jobs -rp | wc -l) -ge 15 ]; do sleep 0.5; done unbuffer bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results & ((started_hosts++)) [ "${1}" != "report" ] && printf "\r${idsCL[LightCyan]}${MSG}${spc}: Started on %d of %d hosts %s${idsCL[Default]}" "${started_hosts}" "${#hostnames_sort[@]}" $([[ "$started_hosts" -lt "${#hostnames_sort[@]}" ]] && echo " ..." || echo "")