mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-24 09:10:16 -06:00
LibreQoS.py - code optymalisation, if first test is ok, dont next because its useless (the device is marked as deviceChanged allready)
This commit is contained in:
parent
2f6a392b80
commit
ae35516c05
@ -1089,18 +1089,13 @@ def refreshShapersUpdateOnly():
|
||||
|
||||
for circuitID, circuit in lastLoadedSubscriberCircuitsByID.items():
|
||||
if (circuitID in newlyUpdatedSubscriberCircuitsByID) and (circuitID in lastLoadedSubscriberCircuitsByID):
|
||||
if newlyUpdatedSubscriberCircuitsByID[circuitID]['maxDownload'] != lastLoadedSubscriberCircuitsByID[circuitID]['maxDownload']:
|
||||
devicesChanged = True
|
||||
if newlyUpdatedSubscriberCircuitsByID[circuitID]['maxUpload'] != lastLoadedSubscriberCircuitsByID[circuitID]['maxUpload']:
|
||||
devicesChanged = True
|
||||
if newlyUpdatedSubscriberCircuitsByID[circuitID]['minDownload'] != lastLoadedSubscriberCircuitsByID[circuitID]['minDownload']:
|
||||
devicesChanged = True
|
||||
if newlyUpdatedSubscriberCircuitsByID[circuitID]['minUpload'] != lastLoadedSubscriberCircuitsByID[circuitID]['minUpload']:
|
||||
devicesChanged = True
|
||||
if newlyUpdatedSubscriberCircuitsByID[circuitID]['devices'] != lastLoadedSubscriberCircuitsByID[circuitID]['devices']:
|
||||
devicesChanged = True
|
||||
if newlyUpdatedSubscriberCircuitsByID[circuitID]['ParentNode'] != lastLoadedSubscriberCircuitsByID[circuitID]['ParentNode']:
|
||||
devicesChanged = True
|
||||
if ((newlyUpdatedSubscriberCircuitsByID[circuitID]['maxDownload'] != lastLoadedSubscriberCircuitsByID[circuitID]['maxDownload'])
|
||||
or (newlyUpdatedSubscriberCircuitsByID[circuitID]['maxUpload'] != lastLoadedSubscriberCircuitsByID[circuitID]['maxUpload'])
|
||||
or (newlyUpdatedSubscriberCircuitsByID[circuitID]['minDownload'] != lastLoadedSubscriberCircuitsByID[circuitID]['minDownload'])
|
||||
or (newlyUpdatedSubscriberCircuitsByID[circuitID]['minUpload'] != lastLoadedSubscriberCircuitsByID[circuitID]['minUpload'])
|
||||
or (newlyUpdatedSubscriberCircuitsByID[circuitID]['devices'] != lastLoadedSubscriberCircuitsByID[circuitID]['devices'])
|
||||
or (newlyUpdatedSubscriberCircuitsByID[circuitID]['ParentNode'] != lastLoadedSubscriberCircuitsByID[circuitID]['ParentNode'])):
|
||||
devicesChanged = True
|
||||
else:
|
||||
devicesChanged = True
|
||||
for circuitID, circuit in newlyUpdatedSubscriberCircuitsByID.items():
|
||||
|
Loading…
Reference in New Issue
Block a user