lib/roi/rentability.rb in roi_calculator-0.3.2 vs lib/roi/rentability.rb in roi_calculator-0.3.3
- old
+ new
@@ -69,10 +69,10 @@
end
def to_a
dates_with_position.map do |date|
if @rentabilities[date]
- [date.strftime('%Y-%m-%d'), @rentabilities[date].share]
+ [date.strftime('%Y-%m-%d'), @rentabilities[date].share - 1]
end
end.compact
end
protected