Refactor get_cpu_stats() to properly identify recording process

This commit is contained in:
Sergey Krashevich 2023-05-02 04:48:46 +03:00
parent 709b2c62d4
commit 42bd5bb4f3
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -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] = {