From 8b39784326d8e13f9068ca3457656de25373ab9f Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 29 Mar 2007 19:08:26 +0000 Subject: [PATCH] added vardef git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1026 a5681a0c-68f1-0310-ab6d-d61299d08faa --- doc/rrdruby.pod | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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}", -- 2.11.0