mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 02:35:22 +03:00
Refactor get_cpu_stats() to properly identify recording process
This commit is contained in:
parent
709b2c62d4
commit
42bd5bb4f3
@ -820,7 +820,7 @@ def get_cpu_stats() -> dict[str, dict]:
|
|||||||
idx = pid
|
idx = pid
|
||||||
if stats[1] == "(go2rtc)":
|
if stats[1] == "(go2rtc)":
|
||||||
idx = "go2rtc"
|
idx = "go2rtc"
|
||||||
if stats[1] == "(frigate.r+)":
|
if stats[1].startswith("(frigate.r"):
|
||||||
idx = "recording"
|
idx = "recording"
|
||||||
|
|
||||||
usages[idx] = {
|
usages[idx] = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user