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:
@@ -5,7 +5,7 @@ thingsboard:
|
|||||||
remoteConfiguration: false
|
remoteConfiguration: false
|
||||||
statistics:
|
statistics:
|
||||||
enable: true
|
enable: true
|
||||||
statsSendPeriodInSeconds: 3600
|
statsSendPeriodInSeconds: 60
|
||||||
# configuration: statistics/statistics_linux.json
|
# configuration: statistics/statistics_linux.json
|
||||||
deviceFiltering:
|
deviceFiltering:
|
||||||
enable: false
|
enable: false
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class StatisticsService(Thread):
|
|||||||
self._stopped = False
|
self._stopped = False
|
||||||
|
|
||||||
self._config_path = config_path
|
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._gateway = gateway
|
||||||
self._log = log
|
self._log = log
|
||||||
self._config = self._load_config()
|
self._config = self._load_config()
|
||||||
|
|||||||
Reference in New Issue
Block a user