mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
This commit is contained in:
parent
04f1f4c2cb
commit
fa8d67c554
@ -10,7 +10,7 @@ import subprocess
|
|||||||
import warnings
|
import warnings
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
from ispConfig import interfaceA, interfaceB, enableActualShellCommands, upstreamBandwidthCapacityDownloadMbps, upstreamBandwidthCapacityUploadMbps
|
from ispConfig import interfaceA, interfaceB, enableActualShellCommands, upstreamBandwidthCapacityDownloadMbps, upstreamBandwidthCapacityUploadMbps, generatedPNDownloadMbps, generatedPNUploadMbps
|
||||||
|
|
||||||
def shell(command):
|
def shell(command):
|
||||||
if enableActualShellCommands:
|
if enableActualShellCommands:
|
||||||
@ -103,7 +103,9 @@ def printCircuitClassInfo(ipAddress):
|
|||||||
print("Upload rate/ceil: " + uploadMin + "/" + uploadMax)
|
print("Upload rate/ceil: " + uploadMin + "/" + uploadMax)
|
||||||
print("burst/cburst: " + burst + "/" + cburst)
|
print("burst/cburst: " + burst + "/" + cburst)
|
||||||
else:
|
else:
|
||||||
bwString = str(upstreamBandwidthCapacityDownloadMbps) + '/' + str(upstreamBandwidthCapacityUploadMbps)
|
download = min(upstreamBandwidthCapacityDownloadMbps, generatedPNDownloadMbps)
|
||||||
|
upload = min(upstreamBandwidthCapacityUploadMbps, generatedPNUploadMbps)
|
||||||
|
bwString = str(download) + '/' + str(upload)
|
||||||
print("Invalid IP address provided (default queue limit is " + bwString + " Mbps)")
|
print("Invalid IP address provided (default queue limit is " + bwString + " Mbps)")
|
||||||
|
|
||||||
def findClassIDForCircuitByIP(data, inputIP, classID):
|
def findClassIDForCircuitByIP(data, inputIP, classID):
|
||||||
|
Loading…
Reference in New Issue
Block a user