Update dsmon.sh

This commit is contained in:
2025-06-14 13:55:32 -05:00
parent 690023bab5
commit de44af4c01

View File

@@ -172,7 +172,8 @@ CHECK(){
((nc_count++))
fi
done
[ "${1}" != "report" ] && printf "\r\r${idsCL[LightCyan]}Completed on %d of %d hosts %s${idsCL[Default]}\n" "${nc_count}" "${#hostnames_sort[@]}" $([[ "$nc_count" -lt "${#hostnames_sort[@]}" ]] && echo " ..." || echo "")
[ ${nc_count} -gt ${lc_count} ] && echo
[ "${1}" != "report" ] && printf "\r${idsCL[LightCyan]}Completed on %d of %d hosts %s${idsCL[Default]}" "${nc_count}" "${#hostnames_sort[@]}" $([[ "$nc_count" -lt "${#hostnames_sort[@]}" ]] && echo " ..." || echo "")
if [ $(($(date +%s)-scanstart)) -gt 300 ]; then
@@ -185,6 +186,7 @@ CHECK(){
completed=true
break
fi
lc_count=${nc_count}
sleep 1s
done