mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Add a safety feature that if a site isn't found, auto-allocate its bin.
This commit is contained in:
parent
cdadbb2c1a
commit
b9d2be426c
@ -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