From 37360edbc165ff031bf4b21b922bc0e44d703264 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 28 Apr 2023 06:47:49 -0600 Subject: [PATCH] Show other system processes in system page (#6276) --- frigate/util.py | 9 ++++++++- web/src/routes/System.jsx | 27 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/frigate/util.py b/frigate/util.py index 12139bf99..b01234c1a 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -824,7 +824,14 @@ def get_cpu_stats() -> dict[str, dict]: else: mem_pct = stats[9] - usages[stats[0]] = { + idx = stats[0] + + if stats[-1] == "go2rtc": + idx = "go2rtc" + elif stats[-1] == "frigate.r+": + idx = "recording" + + usages[idx] = { "cpu": stats[8], "mem": mem_pct, } diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index 8a5f2c28f..0320e237b 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -345,6 +345,33 @@ export default function System() { )} + Other Processes +
+ {['go2rtc', 'recording'].map((process) => ( +
+
+
{process}
+
+
+ + + + + + + + + + + + + +
CPU %Memory %
{cpu_usages[process]?.['cpu'] || '- '}%{cpu_usages[process]?.['mem'] || '- '}%
+
+
+ ))} +
+

System stats update automatically every {config.mqtt.stats_interval} seconds.

)}