Give a readout on how long the photos page took to get loaded.
This commit is contained in:
5
run.sh
5
run.sh
@ -99,6 +99,7 @@ find files/photos/ -name "*".html -print -delete
|
|||||||
http_code=0
|
http_code=0
|
||||||
port="${ports%% *}"
|
port="${ports%% *}"
|
||||||
photos_uri=":$port/photos/"
|
photos_uri=":$port/photos/"
|
||||||
|
beg_time="$SECONDS"
|
||||||
while [[ $http_code != "200" ]]; do
|
while [[ $http_code != "200" ]]; do
|
||||||
log "Sleeping for '$count' while waiting for $photos_uri to come up."
|
log "Sleeping for '$count' while waiting for $photos_uri to come up."
|
||||||
sleep $count
|
sleep $count
|
||||||
@ -112,7 +113,9 @@ find files/photos/ -name "*".html -print -delete
|
|||||||
count=$(( count + 1 ))
|
count=$(( count + 1 ))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
log "Finished checking for /photos/."
|
end_time="$SECONDS"
|
||||||
|
time="$(( $end_time - $beg_time ))"
|
||||||
|
log "Finished checking for /photos/ after $time seconds."
|
||||||
} &
|
} &
|
||||||
|
|
||||||
## Main ##
|
## Main ##
|
||||||
|
Reference in New Issue
Block a user