lib/focuslight/rrd.rb in focuslight-0.1.4 vs lib/focuslight/rrd.rb in focuslight-0.2.0

- old
+ new

@@ -189,11 +189,11 @@ rrdoptions.push('--logarithmic') if args[:logarithmic] rrdoptions.push('--font', "AXIS:8:") rrdoptions.push('--font', "LEGEND:8:") - rrdoptions.push('-u', args[:upper_limit]) if args[:upper_limit] - rrdoptions.push('-l', args[:lower_limit]) if args[:lower_limit] + rrdoptions.push('-u', args[:upper_limit]) unless args[:upper_limit].empty? + rrdoptions.push('-l', args[:lower_limit]) unless args[:lower_limit].empty? rrdoptions.push('-r') if args[:rigid] defs = [] datas.each_with_index do |data, i| type = data.c_type ? data.c_type : data.type