From d50f47785008ec5f32bbe5cab4be2ee7068377d9 Mon Sep 17 00:00:00 2001 From: fewtarius Date: Thu, 12 Oct 2023 01:58:10 +0000 Subject: [PATCH] Increase default interval, don't exit if there's nothing to see. --- tools/dashboard | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/dashboard b/tools/dashboard index fa1877fa8..76123ebce 100755 --- a/tools/dashboard +++ b/tools/dashboard @@ -6,18 +6,17 @@ ### A simple loop to watch the status of any active builds. ### -DELAY=${1:-5} +DELAY=${1:-10} while true do + clear ACTIVE=$(find build*/.threads -name status -mmin -5 -printf "%T@ %p\n" | sort -n | awk 'END {print $NF}') if [ "${ACTIVE}" ] then - clear cat ${ACTIVE} sleep ${DELAY} else echo -e "\nThere are no active builds available to view." - exit 1 fi done