From 2031c3146ff7995c8f7761b04cbc43b144e2489b Mon Sep 17 00:00:00 2001 From: James L <24962424+leccelecce@users.noreply.github.com> Date: Fri, 13 Jan 2023 23:14:07 +0000 Subject: [PATCH] System page: make clear if detect disabled (#5075) --- frigate/stats.py | 1 + web/src/routes/System.jsx | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frigate/stats.py b/frigate/stats.py index 86ac3780b..b67c2109b 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -215,6 +215,7 @@ def stats_snapshot( "process_fps": round(camera_stats["process_fps"].value, 2), "skipped_fps": round(camera_stats["skipped_fps"].value, 2), "detection_fps": round(camera_stats["detection_fps"].value, 2), + "detection_enabled": camera_stats["detection_enabled"].value, "pid": pid, "capture_pid": cpid, "ffmpeg_pid": ffmpeg_pid, diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index b60ceeb9a..6f51a5397 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -234,7 +234,7 @@ export default function System() { {cameras[camera]['camera_fps'] || '- '} {cpu_usages[cameras[camera]['ffmpeg_pid']]?.['cpu'] || '- '}% {cpu_usages[cameras[camera]['ffmpeg_pid']]?.['mem'] || '- '}% - + Capture {cameras[camera]['capture_pid'] || '- '} @@ -245,9 +245,13 @@ export default function System() { Detect {cameras[camera]['pid'] || '- '} - - {cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped) - + + {cameras[camera]['detection_enabled'] == 1 ? ( + {cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped) + ) : ( + disabled + )} + {cpu_usages[cameras[camera]['pid']]?.['cpu'] || '- '}% {cpu_usages[cameras[camera]['pid']]?.['mem'] || '- '}%