Skip to content

Commit

Permalink
Formatting adjustment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistos committed Aug 2, 2010
1 parent 03c42e2 commit f3be2d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ideone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ def self.run( id, input )

begin
sleep 1 if i > 0
res = JSON.load(Net::HTTP.post_form(URI.parse("http://ideone.com/ideone/Index/view/id/#{loc}/ajax/1"),{}).body)
res = JSON.load(
Net::HTTP.post_form(
URI.parse("http://ideone.com/ideone/Index/view/id/#{loc}/ajax/1"),
{}
).body
)
i += 1
end while res['result'] != "15" && i < TIMEOUT

Expand Down

0 comments on commit f3be2d6

Please sign in to comment.