mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-12-08 20:38:48 +00:00
wifi rates fix
This commit is contained in:
@@ -85,7 +85,7 @@ class BaseOutputProcessor:
|
|||||||
wifi_rates_rgx = re.compile(r'(\d*(?:\.\d*)?)([GgMmKk]bps?)')
|
wifi_rates_rgx = re.compile(r'(\d*(?:\.\d*)?)([GgMmKk]bps?)')
|
||||||
config_handler.re_compiled['wifi_rates_rgx'] = wifi_rates_rgx
|
config_handler.re_compiled['wifi_rates_rgx'] = wifi_rates_rgx
|
||||||
rc = wifi_rates_rgx.search(rate)
|
rc = wifi_rates_rgx.search(rate)
|
||||||
return f'{int(float(rc[1]))} {rc[2]}'
|
return f'{int(float(rc[1]))} {rc[2]}' if rc else ''
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def parse_timedelta(time):
|
def parse_timedelta(time):
|
||||||
|
|||||||
Reference in New Issue
Block a user