lib/lilygraph.rb in lilygraph-0.5.2 vs lib/lilygraph.rb in lilygraph-0.5.3
- old
+ new
@@ -293,10 +293,10 @@
num.respond_to?(:max) ? num.max : num
end.max || 0
end
def division
- [(10 ** Math.log10(data_max).floor) / 10, 1].max
+ [(10 ** Math.log10(data_max).floor), 1].max
end
def max
(((data_max + (division / 10)) / Float(division)).ceil * Float(division)).round
end