From da22217e7b50f7d0997b8a6258f4db0a7378b60d Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Sun, 5 Nov 2023 08:36:15 -0800 Subject: [PATCH] Refactor timer/datetime --- install/assets/functions/10-db-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/assets/functions/10-db-backup b/install/assets/functions/10-db-backup index 2d88476..b0a6a88 100644 --- a/install/assets/functions/10-db-backup +++ b/install/assets/functions/10-db-backup @@ -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