From c215d96ee6543fbc9429a1962c7d7b58593977ea Mon Sep 17 00:00:00 2001 From: Bui Nguyen Quoc Thanh Date: Thu, 20 Feb 2020 18:11:43 +0700 Subject: gateway: Configurable interval time - Introduce "General" section for dlt_gateway.conf - In new section, the interval is used for gateway timer. This entry is optional. By default, it is set to 1 second as the existing hardcoded value. Signed-off-by: Bui Nguyen Quoc Thanh --- src/daemon/dlt-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index e4039a2..aff33e6 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -882,8 +882,8 @@ int main(int argc, char *argv[]) /* create gateway timer */ create_timer_fd(&daemon_local, - DLT_GATEWAY_TIMER_INTERVAL, - DLT_GATEWAY_TIMER_INTERVAL, + daemon_local.pGateway.interval, + daemon_local.pGateway.interval, DLT_TIMER_GATEWAY); } -- cgit v1.2.1