diff options
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/hud/hud_fps.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/hud/hud_fps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/hud/hud_fps.c b/lib/mesa/src/gallium/auxiliary/hud/hud_fps.c index 8aa7a665a..a360bc2ed 100644 --- a/lib/mesa/src/gallium/auxiliary/hud/hud_fps.c +++ b/lib/mesa/src/gallium/auxiliary/hud/hud_fps.c @@ -47,12 +47,12 @@ query_fps(struct hud_graph *gr) if (info->last_time) { if (info->last_time + gr->pane->period <= now) { - double fps = ((uint64_t)info->frames) * 1000000 / + double fps = (uint64_t)info->frames * 1000000 / (double)(now - info->last_time); info->frames = 0; info->last_time = now; - hud_graph_add_value(gr, fps); + hud_graph_add_value(gr, (uint64_t) fps); } } else { |