Skip to content

Commit

Permalink
Refactor timer/datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 5, 2023
1 parent 59854c1 commit da22217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ timer() {
print_debug "Difference in seconds: ${time_wait}"

if (( ${time_wait} < 0 )); then
time_wait=$(( (${time_wait} + (${backup_job_backup_interval - 1)) / (${backup_job_backup_interval} * 60) ))
time_wait=$(( (${time_wait} + (${backup_job_backup_interval} - 1)) / (${backup_job_backup_interval} * 60) ))
time_wait=$(( ${time_wait} * -1 ))
print_debug "Difference in seconds (rounded) time_wait is in the past : ${time_wait}"
fi
Expand Down

0 comments on commit da22217

Please sign in to comment.