Mark ping answered when we get a two form reply

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9378 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-04-06 16:26:50 +00:00
parent 6e1c5865b7
commit 134cff821e

View File

@ -72,6 +72,7 @@ bool TreeSocket::LocalPong(const std::string &prefix, std::deque<std::string> &p
gettimeofday(&t, NULL);
long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
ServerSource->rtt = ts - ServerSource->LastPingMsec;
ServerSource->SetPingFlag();
}
}
else