From: Alan T. DeKok Date: Thu, 28 Sep 2023 02:32:51 +0000 (-0400) Subject: remove policies which aren't really correct X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49beb5fe581eb540b10efd1cfec84ff7eec89553;p=thirdparty%2Ffreeradius-server.git remove policies which aren't really correct they use old %C.%c, instead of just relying on the new fr_time_t and fr_time_delta_t --- diff --git a/raddb/policy.d/time b/raddb/policy.d/time index 6ea1a45b36c..843393d009a 100644 --- a/raddb/policy.d/time +++ b/raddb/policy.d/time @@ -1,17 +1,4 @@ -# Returns the current epoch time in ms # -# Sets Tmp-uint64-0 with the current epoch time in ms -time_current_ms { - &request.Tmp-uint64-0 := "%{expr:(%c*1000) + (%C/1000)}" -} - -# Returns elapsed time in ms since time_current_ms -# -# Sets Tmp-uint64-1 with number of milliseconds -time_elapsed_ms { - &request.Tmp-uint64-1 := "%{expr:(%c*1000) + (%C/1000) - %{Tmp-uint64-0}}" -} - # Handles the Expiration attribute # expiration {