From f978bf31dd5c3209332c2a00cf752de1e7bc464e Mon Sep 17 00:00:00 2001 From: nicoboy Date: Mon, 20 Jul 2026 18:55:20 +0200 Subject: [PATCH] =?UTF-8?q?Simplifier=20overlay=20=E2=80=94=20afficher=20T?= =?UTF-8?q?HROTTLED=20seulement=20si=20throttling=20actif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- receive_cam.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/receive_cam.py b/receive_cam.py index dfce6e4..43a24cd 100644 --- a/receive_cam.py +++ b/receive_cam.py @@ -219,10 +219,11 @@ def draw_overlay(frame: np.ndarray) -> np.ndarray: temp = stats.get("temp_c", "?") cpu = stats.get("cpu_pct", "?") throttled = stats.get("throttled", False) - throttle_str = "THROTTLED" if throttled else "ok" line1 = f"{w_res}x{h_res} | {fps}fps | {enc} | {temp}C" - line2 = f"CPU {cpu}% | {throttle_str} | {_band_label}" + line2 = f"CPU {cpu}% | {_band_label}" + if throttled: + line2 += " | THROTTLED" font = cv2.FONT_HERSHEY_SIMPLEX scale = 0.55