diff --git a/src/LibreQoS.py b/src/LibreQoS.py index 63ccdd4f..055beb4c 100755 --- a/src/LibreQoS.py +++ b/src/LibreQoS.py @@ -545,8 +545,8 @@ def refreshShapers(): if isinstance(node, str): if (isinstance(data[node], dict)) and (node != 'children'): # Cap based on this node's max bandwidth, or parent node's max bandwidth, whichever is lower - data[node]['downloadBandwidthMbps'] = min(data[node]['downloadBandwidthMbps'],parentMaxDL) - data[node]['uploadBandwidthMbps'] = min(data[node]['uploadBandwidthMbps'],parentMaxUL) + data[node]['downloadBandwidthMbps'] = min(int(data[node]['downloadBandwidthMbps']),int(parentMaxDL)) + data[node]['uploadBandwidthMbps'] = min(int(data[node]['uploadBandwidthMbps']),int(parentMaxUL)) # Recursive call this function for children nodes attached to this node if 'children' in data[node]: # We need to keep tabs on the minor counter, because we can't have repeating class IDs. Here, we bring back the minor counter from the recursive function