X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdruby.pod;h=5a647939ffb38d851fa9831ce314a7eaad96c899;hp=963344711b9419d32497acb55ad351340bf4a567;hb=22129bb15a8ad204cf8a5e88e8834ec0b51908c0;hpb=8b39784326d8e13f9068ca3457656de25373ab9f diff --git a/doc/rrdruby.pod b/doc/rrdruby.pod index 9633447..5a64793 100644 --- a/doc/rrdruby.pod +++ b/doc/rrdruby.pod @@ -46,7 +46,7 @@ to the other B 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