From 40a4a7858df2ded8602929d695f70319a5996405 Mon Sep 17 00:00:00 2001 From: samson0v Date: Tue, 2 May 2023 15:20:54 +0300 Subject: [PATCH] Fixed statistics sending period --- thingsboard_gateway/config/tb_gateway.yaml | 2 +- thingsboard_gateway/gateway/statistics_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thingsboard_gateway/config/tb_gateway.yaml b/thingsboard_gateway/config/tb_gateway.yaml index 8d21c971..da4768a5 100644 --- a/thingsboard_gateway/config/tb_gateway.yaml +++ b/thingsboard_gateway/config/tb_gateway.yaml @@ -5,7 +5,7 @@ thingsboard: remoteConfiguration: false statistics: enable: true - statsSendPeriodInSeconds: 3600 + statsSendPeriodInSeconds: 60 # configuration: statistics/statistics_linux.json deviceFiltering: enable: false diff --git a/thingsboard_gateway/gateway/statistics_service.py b/thingsboard_gateway/gateway/statistics_service.py index 86c9a975..dca3694a 100644 --- a/thingsboard_gateway/gateway/statistics_service.py +++ b/thingsboard_gateway/gateway/statistics_service.py @@ -22,7 +22,7 @@ class StatisticsService(Thread): self._stopped = False self._config_path = config_path - self._stats_send_period_in_seconds = stats_send_period_in_seconds / 1000 + self._stats_send_period_in_seconds = stats_send_period_in_seconds self._gateway = gateway self._log = log self._config = self._load_config()