diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
commit | 659a651aa294c335e519b4c72bbd052b3199a793 (patch) | |
tree | a36a95dd652717624034c553bf18c7d66156ccf5 /lib/byteback/disk_free_history.rb | |
parent | 38c89a9e32a67f96b40d756a5c356f8c31247ab9 (diff) |
First pass with rubocoprubocop
Diffstat (limited to 'lib/byteback/disk_free_history.rb')
-rw-r--r-- | lib/byteback/disk_free_history.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/byteback/disk_free_history.rb b/lib/byteback/disk_free_history.rb index 5f45f14..db7f45a 100644 --- a/lib/byteback/disk_free_history.rb +++ b/lib/byteback/disk_free_history.rb @@ -67,8 +67,8 @@ module Byteback list.reverse.each do |reading| if later_reading difference = - value_from_reading.call(reading) - - value_from_reading.call(later_reading) + yield reading - + yield later_reading total += difference end readings += 1 |