removed additional ms for ping time mearuement

This commit is contained in:
Volker Fischer 2008-08-10 20:17:34 +00:00
parent 056e7f9f33
commit c717fc11a9

View file

@ -99,9 +99,8 @@ void CClient::OnNewConnection()
void CClient::OnReceivePingMessage ( QTime time ) void CClient::OnReceivePingMessage ( QTime time )
{ {
// calculate difference between received time and current time, add one // calculate difference between received time and current time
// ms because QT seems to use a "floor" operation on "msecsTo()" function emit PingTimeReceived ( time.msecsTo ( QTime().currentTime() ) /* ms */ );
emit PingTimeReceived ( time.msecsTo ( QTime().currentTime() ) + 1 /* ms */ );
} }
bool CClient::SetServerAddr ( QString strNAddr ) bool CClient::SetServerAddr ( QString strNAddr )