src/examples/openflow_message/hello.rb in trema-0.4.6 vs src/examples/openflow_message/hello.rb in trema-0.4.7
- old
+ new
@@ -22,14 +22,14 @@
def start
if ARGV.size != 1
STDERR.puts "Usage: #{ File.basename __FILE__ } COUNT"
shutdown!
end
- @count = ARGV[ 0 ].to_i
+ @count = ARGV[ 0].to_i
end
- def switch_ready datapath_id
+ def switch_ready(datapath_id)
@count.times do
send_message datapath_id, Hello.new
end
end
end