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:
parent
5f74e84f80
commit
22fa3fa50f
@ -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;
|
||||
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user