Skip to content

Commit

Permalink
Update setup_server.sh
Browse files Browse the repository at this point in the history
fix minutes seconds bug at end
  • Loading branch information
PeterJBurke authored Jan 29, 2024
1 parent 56dbdc8 commit 01b86c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,14 @@ echo "Finished running configure_web_server server!"
end_time="$(date -u +%s)"

elapsed="$(($end_time-$start_time))"
#echo "Total of $elapsed seconds elapsed for the entire process"
echo "Total of $elapsed seconds elapsed for the entire process"


total_seconds=$1
minutes=$((total_seconds / 60))
seconds=$((total_seconds % 60))
minutes=$((elapsed / 60))
seconds=$((elapsed % 60))
echo "Ellapsed time ${minutes} minutes ${seconds} seconds"





0 comments on commit 01b86c2

Please sign in to comment.