glx: print FPS with 2 decimal places
[mesa.git] / src / glx / dri2_glx.c
index 9c222d81312ac72c7f6c423048eb5fc549982195..f7e306e5dbca2fa94308aa44a5cb800b713733b7 100644 (file)
@@ -776,7 +776,7 @@ static void show_fps(struct dri2_drawable *draw)
 
    if (draw->previous_time + interval * 1000000 <= current_time) {
       if (draw->previous_time) {
-         fprintf(stderr, "libGL: FPS = %.1f\n",
+         fprintf(stderr, "libGL: FPS = %.2f\n",
                  ((uint64_t)draw->frames * 1000000) /
                  (double)(current_time - draw->previous_time));
       }