mIRC Homepage

lag reply

Posted By: RockHound

lag reply - 06/04/05 06:22 AM

Im trying to get a reply for lag but the return i get is not the lag.

Code:
.raw -q ping $server

on ^*:PONG:{
haltdef
echo -a  $1-
}


my question is how do i get the retun to show the correct lag?
Posted By: DaveC

Re: lag reply - 06/04/05 09:26 AM

Code:
alias serverlag {
  .raw -q ping $ticks
}
;
on ^*:PONG:{
  haltdef
  echo -a Serverlag is $calc(($ticks - $2) / 1000 / 2) seconds
}


send $ticks not $server
$2 well be gthe same $ticks value you sent
so i then take the current $ticks subtract the $2 ticks to get round trip time
divide by 2 (i think im ment to do this since its not round trip lag just server lag maybe im not ment to i dont know)
divide by 1000 to get ticks to seconds
Posted By: RockHound

Re: lag reply - 06/04/05 07:28 PM

Thanks for responding. I used you script and well the server lag is less then the lag to my isp. Not to sound rude or anything but is there an error in the script? lag to isp is 54ms lag tio server is 0.064 seconds.
Posted By: raZOR

Re: lag reply - 06/04/05 07:36 PM

script is correct
Posted By: RockHound

Re: lag reply - 06/04/05 07:37 PM

ok thanks
© 2021 mIRC Discussion Forums