mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 18:25: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
|
||||
if stats[1] == "(go2rtc)":
|
||||
idx = "go2rtc"
|
||||
if stats[1] == "(frigate.r+)":
|
||||
if stats[1].startswith("(frigate.r"):
|
||||
idx = "recording"
|
||||
|
||||
usages[idx] = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user