From 48cb1ce1f047b2b8e65b68445c8bdac791d722ac Mon Sep 17 00:00:00 2001 From: Matthew Bloch Date: Wed, 5 Nov 2014 16:16:34 +0000 Subject: Fixed a couple of silly typos. --- lib/byteback/disk_free_history.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/byteback/disk_free_history.rb b/lib/byteback/disk_free_history.rb index ba66863..5ecc1c7 100755 --- a/lib/byteback/disk_free_history.rb +++ b/lib/byteback/disk_free_history.rb @@ -43,7 +43,7 @@ module Byteback # and less than the minimum interval. # return nil if @list.last && - @list.last.fsstat.blocks_available == reading.fsstat.blocks_available + @list.last.fsstat.blocks_available == reading.fsstat.blocks_available && Time.now - @list.last.time < MINIMUM_INTERVAL @list << reading @@ -96,7 +96,7 @@ module Byteback def save! list.shift while Time.now - list.first.time > MAXIMUM_AGE - tmp = "@history_file.#{$$}.#{rand(9999999999)}" + tmp = "@{history_file}.#{$$}.#{rand(9999999999)}" begin File.open(tmp, "w") do |fh| fh.write(Marshal.dump(list)) -- cgit v1.2.1