Update LibreQoS.py

This commit is contained in:
Robert Chacón 2025-02-14 04:03:43 -07:00 committed by GitHub
parent d7fd99eee3
commit bd97e5b8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -882,6 +882,11 @@ def refreshShapers():
linuxTCcommands.append(command)
if 'circuits' in data[node]:
for circuit in data[node]['circuits']:
# Handle low minimum rates very carefully to avoid over-provisioning
if circuit['minDownload'] == 1:
circuit['minDownload'] = 0.01
if circuit['minUpload'] == 1:
circuit['minUpload'] = 0.01
# Generate TC commands to be executed later
tcComment = " # CircuitID: " + circuit['circuitID'] + " DeviceIDs: "
for device in circuit['devices']: