mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Fix loading integrationUISPbandwidths.csv when a floating point number snuck in.
This commit is contained in:
@@ -129,8 +129,8 @@ def buildSiteBandwidths():
|
||||
next(csv_reader)
|
||||
for row in csv_reader:
|
||||
name, download, upload = row
|
||||
download = int(download)
|
||||
upload = int(upload)
|
||||
download = int(float(download))
|
||||
upload = int(float(upload))
|
||||
siteBandwidth[name] = {"download": download, "upload": upload}
|
||||
return siteBandwidth
|
||||
|
||||
|
||||
Reference in New Issue
Block a user