From: Arran Cudbard-Bell Date: Fri, 24 Sep 2021 19:31:23 +0000 (-0500) Subject: Set sd_watchdog_interval X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f43d07264e6ffb8e055230520259a55af178bfe2;p=thirdparty%2Ffreeradius-server.git Set sd_watchdog_interval --- diff --git a/src/lib/server/main_loop.c b/src/lib/server/main_loop.c index 6faa03b667..de083563ba 100644 --- a/src/lib/server/main_loop.c +++ b/src/lib/server/main_loop.c @@ -175,7 +175,7 @@ void main_loop_set_sd_watchdog_interval(void) * and set the interval to be half what * systemd uses as its timeout value. */ - sd_watchdog_interval = ((interval_usec * 1000) / 2); + sd_watchdog_interval = fr_time_delta_wrap((interval_usec * 1000) / 2); INFO("systemd watchdog interval is %pVs", fr_box_time_delta(sd_watchdog_interval)); } else {