Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all
Unified · Split
| @@ -1251,12 +1251,10 @@ void Application::sendPingPackets() { · 1250 unmodified lines | |||
| 1251 | const char nodesToPing[] = {NODE_TYPE_VOXEL_SERVER, NODE_TYPE_PARTICLE_SERVER, | 1251 | const char nodesToPing[] = {NODE_TYPE_VOXEL_SERVER, NODE_TYPE_PARTICLE_SERVER, |
| 1252 | NODE_TYPE_AUDIO_MIXER, NODE_TYPE_AVATAR_MIXER}; | 1252 | NODE_TYPE_AUDIO_MIXER, NODE_TYPE_AVATAR_MIXER}; |
| 1253 | 1253 | ||
| 1254 | uint64_t currentTime = usecTimestampNow(); | 1254 | unsigned char pingPacket[MAX_PACKET_SIZE]; |
| 1255 | unsigned char pingPacket[numBytesForPacketHeader((unsigned char*) &PACKET_TYPE_PING) + sizeof(currentTime)]; | 1255 | int length = NodeList::getInstance()->fillPingPacket(pingPacket); |
| 1256 | int numHeaderBytes = populateTypeAndVersion(pingPacket, PACKET_TYPE_PING); | 1256 | |
| 1257 | 1257 | getInstance()->controlledBroadcastToNodes(pingPacket, length, | |
| 1258 | memcpy(pingPacket + numHeaderBytes, ¤tTime, sizeof(currentTime)); | ||
| 1259 | getInstance()->controlledBroadcastToNodes(pingPacket, sizeof(pingPacket), | ||
| 1260 | nodesToPing, sizeof(nodesToPing)); | 1258 | nodesToPing, sizeof(nodesToPing)); |
| 1261 | } | 1259 | } |
| 1262 | 1260 | ||