Skip to content

Commit

Permalink
Fix missing hourly backups; issues teejee2008#497 & 467
Browse files Browse the repository at this point in the history
The code should be changed so that choosing a snapshot to tag follows timing similar to determining if a snapshot for a tag is needed. That is, allow for the possibility that not all runs of cron start right on the same second. A safe change to do this would be to change the timestamp comparison to account for extra seconds.
  • Loading branch information
rodwgs authored Apr 14, 2020
1 parent cecd294 commit 1e1774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ public class Main : GLib.Object{
case "daily":
case "weekly":
case "monthly":
dt_filter = now.add_hours(-1);
dt_filter = now.add_hours(-1).add_seconds(59);
break;
default:
log_error(_("Unknown snapshot type") + ": %s".printf(tag));
Expand Down

0 comments on commit 1e1774a

Please sign in to comment.