From d645677255fa641e8fd5ff0a2865ad6a24e6f5ba Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Thu, 18 May 2023 09:07:29 +0300 Subject: [PATCH] black... --- frigate/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/util.py b/frigate/util.py index d37d89661..b5e5ac2c9 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -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),