This commit is contained in:
Sergey Krashevich 2023-05-18 09:07:29 +03:00
parent 5a0a9bc7b1
commit d645677255
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -864,7 +864,9 @@ def get_bandwidth_stats() -> dict[str, dict]:
for line in lines:
stats = list(filter(lambda a: a != "", line.strip().split("\t")))
try:
if re.search("(^ffmpeg|\/go2rtc|frigate\.detector\.[a-z]+)/([0-9]+)/", stats[0]):
if re.search(
"(^ffmpeg|\/go2rtc|frigate\.detector\.[a-z]+)/([0-9]+)/", stats[0]
):
process = stats[0].split("/")
usages[process[len(process) - 2]] = {
"bandwidth": round(float(stats[2]), 1),