summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb80025)
raw | patch | inline | side by side (parent: eb80025)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 22 Oct 2006 16:01:42 +0000 (16:01 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 22 Oct 2006 16:01:42 +0000 (16:01 +0000) |
program/bindings/ruby/test.rb | patch | blob | history |
index 3cdcca6177d6687e8a15b9731011fa697ebc9f8a..48533266b60b6a2f2a66a958a412c375bf7f9eb5 100755 (executable)
# $Id: test.rb,v 1.2 2002/10/22 17:34:00 miles Exp $
# Driver does not carry cash.
+$: << '/scratch/rrd12build/lib/ruby/1.8/i386-linux/'
+
require "RRD"
name = "test"
RRD.graph(
"#{name}.png",
"--title", " RubyRRD Demo",
- "--start", "#{start} + 1 h",
- "--end", "#{start} + 1000 min",
+ "--start", "#{start+3600}",
+ "--end", "start + 1000 min",
"--interlace",
"--imgformat", "PNG",
"--width=450",