Skip to content

Commit

Permalink
Fix excuse
Browse files Browse the repository at this point in the history
  • Loading branch information
brainopia committed Oct 17, 2010
1 parent 846b961 commit 0ba568a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/javascripts/application.js
Expand Up @@ -161,13 +161,13 @@ ping = {
show: function(){
var sum = 0
$.each(ping.results, function(i,it){ sum += it })
var result = parseInt(sum / ping.results.length)
var sorry = '<br/>Sorry, you can experience delay<br/>because of the distance to our server'
var result = parseInt(sum / ping.results.length),
sorry = '<br/>Sorry, you can experience delay<br/>because of the distance to our server'

if result > 150
ping.element.text('Ping: ' + result + sorry)
if (result > 150)
ping.element.html('Ping: ' + result + sorry)
else
ping.element.text('Ping: ' + result)
ping.element.html('Ping: ' + result)
}
}

Expand Down

0 comments on commit 0ba568a

Please sign in to comment.