I was just poking around in a script to see how they did something, and i came across this lag meter that does weird things.. code follows:
alias _checklag { .timerLagCheck 0 $_opt.rval(n5,3) .raw ping $ctime }
ON ^*:PONG: {
SET %_Mlag.pt $round($calc(($ctime - $2) / 1000),0)
SET %_Mlag.dpt $calc(($ctime - $2) / 1000)
The rest is the stuff that sets the timer and draws the lag in a window and stuff.. But i really don't get it. Why is the pong reply being divided by 1000 ? And why does it use the same time in the ping command every time ? (in the /timers i checked, it used the same number in every ping command)
That way the server just thinks i'm lagging a lot and the script divides it by 1000 .. or am i missing something here?