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:
parent
e7d12b9746
commit
a9e622c32f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue