From a38ec34b4a6485fd215164396ab63482f8e04dfe Mon Sep 17 00:00:00 2001 From: James Hannah Date: Tue, 17 Nov 2015 14:00:29 +0000 Subject: Fix typo (undefined variable) in byteback-push --- bin/byteback-prune | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/byteback-prune') 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 -- cgit v1.2.1