1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Revert "Update tb_gateway_service.py"

This reverts commit 19de138d8c.
This commit is contained in:
xunyu.wang
2022-12-11 22:13:31 +08:00
parent f6911afbc6
commit 2f4a451078

View File

@@ -240,14 +240,10 @@ class TBGatewayService:
self.__statistics = self.__config['thingsboard'].get('statistics', DEFAULT_STATISTIC)
self.__statistics_service = None
if self.__statistics['enable']:
# fix thread block in rasperberry pi
self.__statistics_service_thread = Thread(name='Checking devices idle time', target=StatisticsService,
args=(self.__statistics['statsSendPeriodInSeconds'], self, log,
self._config_dir + self.__statistics[
self.__statistics_service = StatisticsService(self.__statistics['statsSendPeriodInSeconds'], self, log,
config_path=self._config_dir + self.__statistics[
'configuration'] if self.__statistics.get(
'configuration') else None),
daemon=True)
self.__statistics_service_thread.start()
'configuration') else None)
self._published_events = SimpleQueue()