Skip to content

Commit

Permalink
Fixed runtime calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
madic-creates authored Nov 1, 2021
1 parent 99c3da2 commit 107a748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Linux/Backup/backupmysql/backupmysql
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if [ "$CHECKSUM" == "$CHECKOUTS" ]; then
fi
fi

end=(date +%s)
end=$(($(date +%s) - $start))
runtime=$(date -u -d @${end} +"%T")
echo -e "\n$(date +"%Y-%m-%d %H:%M:%S") Script runtime: $runtime"

Expand Down

0 comments on commit 107a748

Please sign in to comment.