From 912e0f67895afd9117e94c893f59465e36153a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Castro?= Date: Tue, 5 Mar 2024 20:25:34 -0300 Subject: [PATCH] Round FPS to 2 decimal digits --- norfair/common_reference_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/norfair/common_reference_ui.py b/norfair/common_reference_ui.py index ce3d8a53..8b5e0da2 100644 --- a/norfair/common_reference_ui.py +++ b/norfair/common_reference_ui.py @@ -759,7 +759,7 @@ def handle_skip_frame(event): frame_options_fps = tk.Frame(master=frame_options) title = tk.Label( master=frame_options_fps, - text=f"FPS {video_type}: {fps}", + text=f"FPS {video_type}: {round(fps, 2)}", foreground="white", background="#34A2FE", width=40,