Skip to content

Instantly share code, notes, and snippets.

@asim
Created December 22, 2010 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asim/751418 to your computer and use it in GitHub Desktop.
Save asim/751418 to your computer and use it in GitHub Desktop.
h = {}
Stats::QUEUES.size.times do |i|
a[i] = Thread.new {
queue = Stats::QUEUES[i-1]
h["#{queue}:#{ip}:24"] = return_day_for(ip,queue)
}
end
a.each { |t| t.join }
h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment