From: Alan T. DeKok Date: Wed, 8 Sep 2021 12:56:50 +0000 (-0400) Subject: whoops, convert to time_delta X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85225fdcd823a693b2d83492e2e6eddabcd1e069;p=thirdparty%2Ffreeradius-server.git whoops, convert to time_delta --- diff --git a/src/lib/server/main_config.c b/src/lib/server/main_config.c index 6f2ea617715..7ac743d3845 100644 --- a/src/lib/server/main_config.c +++ b/src/lib/server/main_config.c @@ -1378,7 +1378,7 @@ void main_config_hup(main_config_t *config) * Only check the config files every few seconds. */ when = fr_time(); - if ((last_hup + 2) >= when) { + if ((last_hup + fr_time_delta_from_sec(2)) >= when) { INFO("HUP - Last HUP was too recent. Ignoring"); return; }