summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ce8878)
raw | patch | inline | side by side (parent: 7ce8878)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 29 Mar 2007 19:08:26 +0000 (19:08 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 29 Mar 2007 19:08:26 +0000 (19:08 +0000) |
program/doc/rrdruby.pod | patch | blob | history |
index f2aced8248639e7485ebeb7367d67aa475362469..963344711b9419d32497acb55ad351340bf4a567 100644 (file)
--- a/program/doc/rrdruby.pod
+++ b/program/doc/rrdruby.pod
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")
$: << '/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}",