Update integrationUISP.py

This commit is contained in:
Robert Chacón 2023-04-14 23:56:08 -06:00 committed by GitHub
parent d80be2bd4c
commit eced3e2ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,9 +160,9 @@ def findAirfibers(devices, generatedPNDownloadMbps, generatedPNUploadMbps):
download = int(device['overview']['downlinkCapacity']/ 1000000)
upload = int(device['overview']['uplinkCapacity']/ 1000000)
# Make sure to use half of reported bandwidth for AF60/AF60-LRs
if (device['identification']['model'] == "AF60-LR") or (device['identification']['model'] == "AF60"):
download = int(download / 2)
upload = int(download / 2)
#if (device['identification']['model'] == "AF60-LR") or (device['identification']['model'] == "AF60"):
# download = int(download / 2)
# upload = int(download / 2)
if device['identification']['site']['id'] in foundAirFibersBySite:
if (download > foundAirFibersBySite[device['identification']['site']['id']]['download']) or (upload > foundAirFibersBySite[device['identification']['site']['id']]['upload']):
foundAirFibersBySite[device['identification']['site']['id']]['download'] = download