projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
indenting fixes
[rrdtool.git]
/
bindings
/
ruby
/
test.rb
diff --git
a/bindings/ruby/test.rb
b/bindings/ruby/test.rb
index
3cdcca6
..
4853326
100755
(executable)
--- 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.
# $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"
require "RRD"
name = "test"
@@
-33,8
+35,8
@@
puts "generating graph #{name}.png"
RRD.graph(
"#{name}.png",
"--title", " RubyRRD Demo",
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",
"--interlace",
"--imgformat", "PNG",
"--width=450",