]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
whoops, convert to time_delta
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:56:50 +0000 (08:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:56:50 +0000 (08:56 -0400)
src/lib/server/main_config.c

index 6f2ea617715f01698d7d565d3ce9854ddfab68d6..7ac743d38459dcdc1f820ba1c37984bc8c01244c 100644 (file)
@@ -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;
        }