# File test/test_rrdtool.rb, line 33 def create_data scale = 10 ts = Time.now.to_i + 1 while (ts < (@start.to_i + @step*300)) do @r.update "a:b", ["#{ts}:#{rand()}:#{Math.sin(ts / @step / 10)}"] ts += @step end end