diff options
author | Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com> | 2020-02-20 18:11:43 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:04:07 +0900 |
commit | c215d96ee6543fbc9429a1962c7d7b58593977ea (patch) | |
tree | 94da4773639060f6efdcd4001d7053155902a287 /src/daemon | |
parent | 1d448c10b397e262c813d70864d05fdedeb66062 (diff) | |
download | DLT-daemon-c215d96ee6543fbc9429a1962c7d7b58593977ea.tar.gz |
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 <Thanh.BuiNguyenQuoc@vn.bosch.com>
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/dlt-daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |