From 263b9944d7d320200c189928fdd5a999009ce040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korneliusz=20Jarz=C4=99bski?= Date: Mon, 15 May 2023 03:22:45 +0200 Subject: [PATCH] add ffmpeg bandwidth stats --- frigate/stats.py | 2 +- web/src/routes/System.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/stats.py b/frigate/stats.py index 9ceaa8db3..832506ea9 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -119,7 +119,7 @@ async def set_cpu_stats(all_stats: dict[str, Any]) -> None: all_stats["cpu_usages"] = cpu_stats async def set_bandwidth_stats(all_stats: dict[str, Any]) -> None: - """Set cpu usage from top.""" + """Set bandwidth from nethogs.""" bandwidth_stats = get_bandwidth_stats() if bandwidth_stats: diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index 922e07a30..8e5c7cfc6 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -27,6 +27,7 @@ export default function System() { const { cpu_usages, gpu_usages, + bandwidth_usages, detectors, service = {}, detection_fps: _,