From: oetiker Date: Sun, 22 Oct 2006 16:01:42 +0000 (+0000) Subject: fixed ruby demo X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=14bce781941e9294b5c7f465e3c2c48237b76be0;p=rrdtool.git fixed ruby demo git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@906 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/ruby/test.rb b/bindings/ruby/test.rb index 3cdcca6..4853326 100755 --- a/bindings/ruby/test.rb +++ b/bindings/ruby/test.rb @@ -2,6 +2,8 @@ # $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" @@ -33,8 +35,8 @@ puts "generating graph #{name}.png" 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",