mirror of
https://github.com/lubosz/overte.git
synced 2025-08-28 05:56:24 +02:00
CR: Use functional type conversion instead of c-style casting
This commit is contained in:
parent
1c6cf3df0d
commit
7fdbbe5b77
1 changed files with 7 additions and 4 deletions
|
@ -646,14 +646,17 @@ void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message)
|
|||
packetStream >> isAuthenticated;
|
||||
|
||||
quint64 connectRequestTimestamp;
|
||||
qint64 now = (qint64)usecTimestampNow();
|
||||
qint64 now = qint64(usecTimestampNow());
|
||||
|
||||
packetStream >> connectRequestTimestamp;
|
||||
qint64 pingLagTime = (now - (qint64)connectRequestTimestamp) / (qint64)USECS_PER_MSEC;
|
||||
|
||||
qint64 pingLagTime = (now - qint64(connectRequestTimestamp)) / qint64(USECS_PER_MSEC);
|
||||
quint64 domainServerPingReceiveTime;
|
||||
|
||||
packetStream >> domainServerPingReceiveTime;
|
||||
qint64 domainServerRequestLag = ((qint64)domainServerPingReceiveTime - (qint64)connectRequestTimestamp) / (qint64)USECS_PER_MSEC;
|
||||
qint64 domainServerResponseLag = (now - (qint64)domainServerPingReceiveTime) / (qint64)USECS_PER_MSEC;
|
||||
|
||||
qint64 domainServerRequestLag = (qint64(domainServerPingReceiveTime) - qint64(connectRequestTimestamp)) / qint64(USECS_PER_MSEC);
|
||||
qint64 domainServerResponseLag = (now - qint64(domainServerPingReceiveTime)) / qint64(USECS_PER_MSEC);
|
||||
|
||||
if (_domainHandler.getSockAddr().isNull()) {
|
||||
qWarning(networking) << "IGNORING DomainList packet while not connected to a Domain Server: sent " << pingLagTime << " msec ago.";
|
||||
|
|
Loading…
Reference in a new issue