Update bandwidth calculation to include both incoming and outgoing traffic

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

View File

@ -869,7 +869,7 @@ def get_bandwidth_stats() -> dict[str, dict]:
):
process = stats[0].split("/")
usages[process[len(process) - 2]] = {
"bandwidth": round(float(stats[2]), 1),
"bandwidth": round(float(stats[1])+float(stats[2]), 1),
}
except:
continue