glx: print FPS with 2 decimal places
[mesa.git] / src / glx / dri3_glx.c
index a5cf0e3bf32c72b6649f0e72c6e532d7a627c124..4664733c6557facf6639f92fcf49115ac7f7f1b8 100644 (file)
@@ -147,7 +147,7 @@ glx_dri3_show_fps(struct loader_dri3_drawable *draw, uint64_t current_ust)
    /* DRI3+Present together uses microseconds for UST. */
    if (priv->previous_ust + interval * 1000000 <= current_ust) {
       if (priv->previous_ust) {
-         fprintf(stderr, "libGL: FPS = %.1f\n",
+         fprintf(stderr, "libGL: FPS = %.2f\n",
                  ((uint64_t) priv->frames * 1000000) /
                  (double)(current_ust - priv->previous_ust));
       }