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?