]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set sd_watchdog_interval
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 24 Sep 2021 19:31:23 +0000 (14:31 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 24 Sep 2021 19:31:23 +0000 (14:31 -0500)
src/lib/server/main_loop.c

index 6faa03b667eddf070d6deb03f168e048d0dee7a3..de083563ba17f020bb8e6ccfcc019ed28fa48ed4 100644 (file)
@@ -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 {