Howdy. I''m new here.
I need some advice on how to deal with a busted rubytorrent.
I''m running on windows vista, and the simple example produces this
output:
0.0
0.0
0.0
0.0
0.0
etc...
So here''s my source code:
require ''rubygems''
require ''rubytorrent''
begin
bt =
RubyTorrent::BitTorrent.new("c:\\Pamela_Anderson_and_Tommy_Lee_Video.torrent")
thread = Thread.new do
while true
puts bt.percent_completed
sleep 15
end
end
bt.on_event(self, :complete) { thread.kill }
thread.join
rescue
puts $!
gets
end
puts "feeling fine"
gets