diff options
-rw-r--r-- | zmq-camera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zmq-camera.c b/zmq-camera.c index c3e59c7..1dd7ce3 100644 --- a/zmq-camera.c +++ b/zmq-camera.c @@ -412,9 +412,9 @@ int main (int argc, char *argv []) /* If the timer fired, recalculate bandwidth and update window title */ if (alarm_expired) { double received_mbps = (double)received_bps * 8 / (1<<20); - snprintf (window_title, 80, "%s (%lu fps, %.2lf Mbps)", + snprintf (window_title, 80, "%s (%llu fps, %.2lf Mbps)", is_sender ? local_camera : endpoint, - received_fps, received_mbps); + (long long unsigned int) received_fps, received_mbps); SDL_WM_SetCaption (window_title, window_title); received_fps = received_bps = 0; alarm_expired = 0; |