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=35b926ae82bf7eebef9cadafca25fc9dc08393ba;p=rrdtool-all.git fixed ruby demo git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@906 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/ruby/test.rb b/program/bindings/ruby/test.rb index 3cdcca61..48533266 100755 --- a/program/bindings/ruby/test.rb +++ b/program/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",