From 1dccb10a450c5cf905c4df6e2eaf033c1fd307e0 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 16 Jun 2025 15:44:24 -0600 Subject: [PATCH] Give a readout on how long the photos page took to get loaded. --- run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 2790b0c..e8b23f2 100755 --- a/run.sh +++ b/run.sh @@ -99,6 +99,7 @@ find files/photos/ -name "*".html -print -delete http_code=0 port="${ports%% *}" photos_uri=":$port/photos/" + beg_time="$SECONDS" while [[ $http_code != "200" ]]; do log "Sleeping for '$count' while waiting for $photos_uri to come up." sleep $count @@ -112,7 +113,9 @@ find files/photos/ -name "*".html -print -delete count=$(( count + 1 )) fi done - log "Finished checking for /photos/." + end_time="$SECONDS" + time="$(( $end_time - $beg_time ))" + log "Finished checking for /photos/ after $time seconds." } & ## Main ##