Showing the changes to interface/src/Application.cpp (1 of 20 files). Show all
Unified · Split
| @@ -903,7 +903,7 @@ void Application::wheelEvent(QWheelEvent* event) { · 902 unmodified lines | ||
| 903 | 903 | void Application::sendPingPackets() { |
| 904 | 904 | |
| 905 | 905 | char nodeTypesOfInterest[] = {NODE_TYPE_VOXEL_SERVER, NODE_TYPE_AUDIO_MIXER, NODE_TYPE_AVATAR_MIXER}; |
| 906 | − long long currentTime = usecTimestampNow(); | |
| 906 | + uint64_t currentTime = usecTimestampNow(); | |
| 907 | 907 | unsigned char pingPacket[1 + sizeof(currentTime)]; |
| 908 | 908 | pingPacket[0] = PACKET_HEADER_PING; |
| 909 | 909 | |
| @@ -2429,7 +2429,7 @@ void Application::displayOverlay() { · 1519 unmodified lines | ||
| 2429 | 2429 | // Show on-screen msec timer |
| 2430 | 2430 | if (_renderFrameTimerOn->isChecked()) { |
| 2431 | 2431 | char frameTimer[10]; |
| 2432 | − long long mSecsNow = floor(usecTimestampNow() / 1000.0 + 0.5); | |
| 2432 | + uint64_t mSecsNow = floor(usecTimestampNow() / 1000.0 + 0.5); | |
| 2433 | 2433 | sprintf(frameTimer, "%d\n", (int)(mSecsNow % 1000)); |
| 2434 | 2434 | drawtext(_glWidget->width() - 100, _glWidget->height() - 20, 0.30, 0, 1.0, 0, frameTimer, 0, 0, 0); |
| 2435 | 2435 | drawtext(_glWidget->width() - 102, _glWidget->height() - 22, 0.30, 0, 1.0, 0, frameTimer, 1, 1, 1); |