mirror of
				https://github.com/KevinMidboe/mktxp-no-cli.git
				synced 2025-10-29 17:50:23 +00:00 
			
		
		
		
	expires_after cardinality, bug fixes
This commit is contained in:
		| @@ -85,7 +85,7 @@ class BaseOutputProcessor: | ||||
|             wifi_rates_rgx = re.compile(r'(\d*(?:\.\d*)?)([GgMmKk]bps?)') | ||||
|             config_handler.re_compiled['wifi_rates_rgx'] = wifi_rates_rgx | ||||
|         rc = wifi_rates_rgx.search(rate) | ||||
|         return f'{int(float(rc[1]))} {rc[2]}' if rc else '' | ||||
|         return f'{int(float(rc[1]))} {rc[2]}' if rc and len(rc.groups()) == 2 else rate | ||||
|  | ||||
|     @staticmethod | ||||
|     def parse_timedelta(time): | ||||
|   | ||||
| @@ -76,14 +76,14 @@ class RouterAPIConnection: | ||||
|             self.connect() | ||||
|         return self.api | ||||
|  | ||||
|     def _in_connect_timeout(self, connect_timestamp, quiet = True): | ||||
|     def _in_connect_timeout(self, connect_timestamp): | ||||
|         connect_delay = self._connect_delay() | ||||
|         if (connect_timestamp - self.last_failure_timestamp) < connect_delay: | ||||
|             if not quiet:  | ||||
|                 print(f'{self.router_name}@{self.config_entry.hostname}: in connect timeout, {int(connect_delay - (connect_timestamp - self.last_failure_timestamp))}secs remaining') | ||||
|             if config_handler.system_entry().verbose_mode:  | ||||
|                 print(f'{self.router_name}@{self.E.hostname}: in connect timeout, {int(connect_delay - (connect_timestamp - self.last_failure_timestamp))}secs remaining') | ||||
|                 print(f'Successive failure count: {self.successive_failure_count}') | ||||
|             return True | ||||
|         if not quiet:  | ||||
|         if config_handler.system_entry().verbose_mode:  | ||||
|             print(f'{self.router_name}@{self.config_entry.hostname}: OK to connect') | ||||
|             if self.last_failure_timestamp > 0: | ||||
|                 print(f'Seconds since last failure: {connect_timestamp - self.last_failure_timestamp}') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user