From 29bb779084d76fb31e1b5dfbf54995918d02fc0e Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Thu, 31 Oct 2019 17:02:17 +0100 Subject: [HICN-372] Code clean up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic0ce2d01a05c2724eeaf91f76aafa2facedcbaf3 Signed-off-by: Jordan Augé --- ctrl/facemgr/examples/updownsrv/updownsrv.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ctrl/facemgr/examples') diff --git a/ctrl/facemgr/examples/updownsrv/updownsrv.c b/ctrl/facemgr/examples/updownsrv/updownsrv.c index 5d624583b..3aba3cfd0 100644 --- a/ctrl/facemgr/examples/updownsrv/updownsrv.c +++ b/ctrl/facemgr/examples/updownsrv/updownsrv.c @@ -27,7 +27,8 @@ /** * \brief Default interval (in seconds) between timer events */ -#define DEFAULT_INTERVAL 100000 +#define DEFAULT_INTERVAL_SEC 5 +#define DEFAULT_INTERVAL_NSEC 0 /** * \brief Maximum allowed number of connected clients @@ -136,12 +137,12 @@ int main() { struct itimerspec ts = { .it_interval = { - .tv_sec = DEFAULT_INTERVAL, - .tv_nsec = 0, + .tv_sec = DEFAULT_INTERVAL_SEC, + .tv_nsec = DEFAULT_INTERVAL_NSEC, }, .it_value = { - .tv_sec = DEFAULT_INTERVAL, - .tv_nsec = 0, + .tv_sec = DEFAULT_INTERVAL_SEC, + .tv_nsec = DEFAULT_INTERVAL_NSEC, } }; rc = timerfd_settime(tfd, 0, &ts, NULL); -- cgit 1.2.3-korg