lib/lilygraph.rb in lilygraph-0.5.8 vs lib/lilygraph.rb in lilygraph-0.5.9
- old
+ new
@@ -299,12 +299,12 @@
[(10 ** Math.log10(data_max).floor), 1].max
end
def max
if @options[:flush]
- temp_max = (data_max + [division / 10, 1].max)
- else
temp_max = data_max
+ else
+ temp_max = (data_max + [division / 10, 1].max)
end
((temp_max / Float(division)).ceil * Float(division)).round
end