summaryrefslogtreecommitdiff
path: root/bin/byteback-prune
diff options
context:
space:
mode:
Diffstat (limited to 'bin/byteback-prune')
-rwxr-xr-xbin/byteback-prune2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/byteback-prune b/bin/byteback-prune
index 5cd9a35..a91d003 100755
--- a/bin/byteback-prune
+++ b/bin/byteback-prune
@@ -127,7 +127,7 @@ unless @do_prune_force
#
# Do not prune unless at least one snapshot is a week old
#
- last_week = now - 7*86400
+ last_week = Time.now - (7*86400)
unless snapshots.any?{|snapshot| last_week > snapshot.time}
warn('There are no snapshots older than a week. Not pruning.')
exit 0