mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
black...
This commit is contained in:
parent
5a0a9bc7b1
commit
d645677255
@ -864,7 +864,9 @@ def get_bandwidth_stats() -> dict[str, dict]:
|
|||||||
for line in lines:
|
for line in lines:
|
||||||
stats = list(filter(lambda a: a != "", line.strip().split("\t")))
|
stats = list(filter(lambda a: a != "", line.strip().split("\t")))
|
||||||
try:
|
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("/")
|
process = stats[0].split("/")
|
||||||
usages[process[len(process) - 2]] = {
|
usages[process[len(process) - 2]] = {
|
||||||
"bandwidth": round(float(stats[2]), 1),
|
"bandwidth": round(float(stats[2]), 1),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user