]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use fr_time()
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:50:10 +0000 (08:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:50:10 +0000 (08:50 -0400)
src/lib/server/trigger.c

index 06d26ca22f00ea2c99647954b7a6f57d3c986480..a2e9d8fe8d81c5e02acaa231bf5c6bcd0a58044a 100644 (file)
@@ -50,7 +50,7 @@ static pthread_mutex_t                *trigger_mutex;
 typedef struct {
        fr_rb_node_t    node;           //!< Entry in the trigger last fired tree.
        CONF_ITEM       *ci;            //!< Config item this rate limit counter is associated with.
-       time_t          last_fired;     //!< When this trigger last fired.
+       fr_time_t       last_fired;     //!< When this trigger last fired.
 } trigger_last_fired_t;
 
 /** Retrieve attributes from a special trigger list
@@ -340,7 +340,7 @@ int trigger_exec(unlang_interpret_t *intp, request_t *request,
         */
        if (rate_limit) {
                trigger_last_fired_t    find, *found;
-               time_t                  now = time(NULL);
+               fr_time_t               now = fr_time();
 
                find.ci = ci;