mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
type squish in NodeList
This commit is contained in:
parent
38a33e0283
commit
6804ab8a33
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ void NodeList::timePingReply(sockaddr *nodeAddress, unsigned char *packetData) {
|
||||||
if (socketMatch(node->getPublicSocket(), nodeAddress) ||
|
if (socketMatch(node->getPublicSocket(), nodeAddress) ||
|
||||||
socketMatch(node->getLocalSocket(), nodeAddress)) {
|
socketMatch(node->getLocalSocket(), nodeAddress)) {
|
||||||
|
|
||||||
int pingTime = usecTimestampNow() - *(uint64_t *)(packetData + numBytesForPacketHeader(packetData));
|
int pingTime = usecTimestampNow() - *(uint64_t*)(packetData + numBytesForPacketHeader(packetData));
|
||||||
|
|
||||||
node->setPingMs(pingTime / 1000);
|
node->setPingMs(pingTime / 1000);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue