mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Add a safety feature that if a site isn't found, auto-allocate its bin.
This commit is contained in:
parent
e9530dff54
commit
7836dbc3bb
@ -759,9 +759,14 @@ def refreshShapers():
|
||||
'children': {}
|
||||
}
|
||||
for node in network:
|
||||
found = False
|
||||
for bin in range(queuesAvailable):
|
||||
if node in bins[bin]:
|
||||
binnedNetwork["CpueQueue" + str(bin)]['children'][node] = network[node]
|
||||
found = True
|
||||
if found == False:
|
||||
newQueueId = queuesAvailable-1
|
||||
binnedNetwork["CpueQueue" + str(newQueueId)]['children'][node] = network[node]
|
||||
#print("Binned network = ", binnedNetwork)
|
||||
network = binnedNetwork
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user