Give a readout on how long the photos page took to get loaded.

This commit is contained in:
2025-06-16 15:44:24 -06:00
parent 6f7934f8ff
commit 1dccb10a45

5
run.sh
View File

@ -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 ##