diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/byteback/disk_free_history.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/byteback/disk_free_history.rb b/lib/byteback/disk_free_history.rb index 5ecc1c7..daa68bc 100755 --- a/lib/byteback/disk_free_history.rb +++ b/lib/byteback/disk_free_history.rb @@ -70,7 +70,6 @@ module Byteback value_from_reading.call(reading) - value_from_reading.call(later_reading) total += difference - p difference end break if reading.time < earliest readings += 1 @@ -96,7 +95,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)) |