X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Frrdruby.pod;h=963344711b9419d32497acb55ad351340bf4a567;hb=5fc7ff89bdbced9c593c566fea9840a269935dcd;hp=f2aced8248639e7485ebeb7367d67aa475362469;hpb=c0bc3b8510c95f9a0047b22070d354abf7da20b6;p=rrdtool.git diff --git a/doc/rrdruby.pod b/doc/rrdruby.pod index f2aced8..9633447 100644 --- a/doc/rrdruby.pod +++ b/doc/rrdruby.pod @@ -7,9 +7,8 @@ rrdruby - About the RRD Ruby bindings require "RRD" RRD.create( rrd, - "--start", "#{start - 1}", "--step", "300", - "DS:a:GAUGE:600:U:U", + "DS:a:GAUGE:600:U:U", "DS:b:GAUGE:600:U:U", "RRA:AVERAGE:0.5:1:300") @@ -26,6 +25,11 @@ to the other B documentation for functions and valid arguments. $: << '/path/to/rrdtool/lib/ruby/1.8/i386-linux' require "RRD" + + name = "test" + rrd = "#{name}.rrd" + start = Time.now.to_i + RRD.create( rrd, "--start", "#{start - 1}",