]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove policies which aren't really correct
authorAlan T. DeKok <aland@freeradius.org>
Thu, 28 Sep 2023 02:32:51 +0000 (22:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 28 Sep 2023 02:32:51 +0000 (22:32 -0400)
they use old %C.%c, instead of just relying on the new fr_time_t
and fr_time_delta_t

raddb/policy.d/time

index 6ea1a45b36ccc43a3aa9844d98a88984d1e7e326..843393d009ad0673f5e06763e99f4dd1da1596c4 100644 (file)
@@ -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 {