mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Refactor timer/datetime
This commit is contained in:
@@ -1542,7 +1542,7 @@ timer() {
|
|||||||
print_debug "Difference in seconds: ${time_wait}"
|
print_debug "Difference in seconds: ${time_wait}"
|
||||||
|
|
||||||
if (( ${time_wait} < 0 )); then
|
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 ))
|
time_wait=$(( ${time_wait} * -1 ))
|
||||||
print_debug "Difference in seconds (rounded) time_wait is in the past : ${time_wait}"
|
print_debug "Difference in seconds (rounded) time_wait is in the past : ${time_wait}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user