summaryrefslogtreecommitdiff
path: root/bin/byteback-prune
diff options
context:
space:
mode:
authorJames Hannah <james.hannah@bytemark.co.uk>2015-11-17 14:00:29 +0000
committerJames Hannah <james.hannah@bytemark.co.uk>2015-11-17 14:00:29 +0000
commita38ec34b4a6485fd215164396ab63482f8e04dfe (patch)
tree369436bc9d0ad7ec2a6691879fe627715feb7c99 /bin/byteback-prune
parentc35fe86800bc185b47a8239a1a9d23f12d5263bd (diff)
Fix typo (undefined variable) in byteback-push
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