mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Make compatible with fixed hex tc handles
This commit is contained in:
parent
3919dd92cc
commit
5186c282db
@ -31,7 +31,8 @@ def getDeviceStats(devices):
|
||||
jsonVersion = interfaceBjson
|
||||
for element in jsonVersion:
|
||||
if "parent" in element:
|
||||
if element['parent'] == device['qdisc']:
|
||||
decimalQdisc = str(int((device['qdisc'].split(':')[0]), 16)) + ':' + str(int((device['qdisc'].split(':')[1]), 16))
|
||||
if element['parent'] == decimalQdisc:
|
||||
drops = int(element['drops'])
|
||||
packets = int(element['packets'])
|
||||
bytesSent = int(element['bytes'])
|
||||
|
Loading…
Reference in New Issue
Block a user