Bug 510795 - Format lag time more neatly. r=silver@warwickcompsoc.co.uk (James Ross), a=NPOTFFB.

git-svn-id: svn://10.0.0.236/trunk@258571 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com 2009-10-03 21:08:59 +00:00
parent 5f74e84f80
commit 22fa3fa50f
2 changed files with 2 additions and 2 deletions

View File

@ -2365,7 +2365,7 @@ function serv_pong (e)
return true;
if (this.lastPingSent)
this.lag = roundTo ((new Date() - this.lastPingSent) / 1000, 2);
this.lag = (new Date() - this.lastPingSent) / 1000;
this.lastPingSent = null;

View File

@ -2334,7 +2334,7 @@ function updateNetwork()
{
if (o.server.me)
nick = o.server.me.unicodeName;
lag = (o.server.lag != -1) ? o.server.lag : MSG_UNKNOWN;
lag = (o.server.lag != -1) ? o.server.lag.toFixed(2) : MSG_UNKNOWN;
}
client.statusBar["header-url"].setAttribute("value",
client.currentObject.getURL());