This commit is contained in:
Sergey Krashevich 2023-05-18 08:58:48 +03:00
parent 5794f5a01b
commit 5358a104a5
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -866,7 +866,7 @@ def get_bandwidth_stats() -> dict[str, dict]:
try: try:
if re.search("(^ffmpeg|\/go2rtc)/([0-9]+)/", stats[0]): if re.search("(^ffmpeg|\/go2rtc)/([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),
} }
except: except: