Code

fixed start end time in ruby fetch and added step size -- Mike Perham mperham gmail
[rrdtool.git] / doc / rrdruby.pod
index 963344711b9419d32497acb55ad351340bf4a567..5a647939ffb38d851fa9831ce314a7eaad96c899 100644 (file)
@@ -46,7 +46,7 @@ to the other B<rrdtool> documentation for functions and valid arguments.
  puts
 
  puts "fetching data from #{rrd}"
- (fstart, fend, data) = RRD.fetch(rrd, "--start", start.to_s, "--end", 
+ (fstart, fend, data, step) = RRD.fetch(rrd, "--start", start.to_s, "--end", 
       (start + 300 * 300).to_s, "AVERAGE")
  puts "got #{data.length} data points from #{fstart} to #{fend}"
  puts