X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdruby.pod;h=c1c246e6030353d320cbbec1342444dea5c08e91;hp=963344711b9419d32497acb55ad351340bf4a567;hb=3501907ea29f921eefcae6bd50c3f31eca0e49b2;hpb=5fc7ff89bdbced9c593c566fea9840a269935dcd diff --git a/doc/rrdruby.pod b/doc/rrdruby.pod index 9633447..c1c246e 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 @@ -69,9 +69,9 @@ to the other B documentation for functions and valid arguments. puts If you use the B<--ruby-site-install> configure option you can drop the $: -line since the rrdtool module will be found automatically. +line since the RRDtool module will be found automatically. -If rrdtool runs into trouble, it will throw an exception which you might +If RRDtool runs into trouble, it will throw an exception which you might want to catch. =head1 SEE ALSO