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

Fixed statistics sending period

This commit is contained in:
samson0v
2023-05-02 15:20:54 +03:00
parent a8d9e312cb
commit 40a4a7858d
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ thingsboard:
remoteConfiguration: false
statistics:
enable: true
statsSendPeriodInSeconds: 3600
statsSendPeriodInSeconds: 60
# configuration: statistics/statistics_linux.json
deviceFiltering:
enable: false

View File

@@ -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()