removed additional ms for ping time mearuement
This commit is contained in:
parent
056e7f9f33
commit
c717fc11a9
1 changed files with 2 additions and 3 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue