fixed issue when getting wlan config range value from gui as a float string, cannot be parsed to int by python3

This commit is contained in:
Blake Harnden 2019-06-11 15:27:50 -07:00
parent e7d12b9746
commit a9e622c32f

View file

@ -358,7 +358,7 @@ class BasicRangeModel(WirelessModel):
:param dict config: values to convert
:return: nothing
"""
self.range = int(config["range"])
self.range = int(float(config["range"]))
logging.info("basic range model configured for WLAN %d using range %d", self.wlan.id, self.range)
self.bw = int(config["bandwidth"])
if self.bw == 0: