How to get fractions of seconds?
Craig Campbell
craig.campbell at ccraft.ca
Wed Feb 9 17:00:51 CET 2011
It sounds like the original request "I need to add the time spend for a particular Flow to a Logfile" wants to track the 'login time' in milliseconds. I suppose one could track the time from receiving the original request to sending the authentication - or receiving the accounting packet after authentication.. but I seriously doubt the added granularity would have any real meaning. (References gettimeofday(2) for the seriously nerdy)
Sounds like you'd need to write your own additions to FreeRadius and submit them as an enhancement. (I doubt the result would be worth the effort.)
Cheers,
-craig
----- Original Message -----
From: Ramon J. Castillo
To: FreeRadius users mailing list
Sent: Wednesday, February 09, 2011 8:40 AM
Subject: Re: How to get fractions of seconds?
I see it useful too, when specifying for example "response_window" that instead of be 1 "One second" could be 1200 as in "twelve hundred milliseconds".
I have found some devices that time out in 3 seconds , in these cases you still want to retry at least once . Of course here the network delay is kept under 300 milliseconds end to end.
------------------------------------------------------------------------------
From: Alan DeKok <aland at deployingradius.com>
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Sent: Wed, February 9, 2011 11:38:11 AM
Subject: Re: How to get fractions of seconds?
Stefan A. wrote:
> Best would be to have something like '%l', but in a resolution of
> milliseconds.
This is impossible.
The dates and elapsed times in RADIUS have a resolution down to one
second, but no more.
It's possible to "fake" adding milliseconds, but they will bear little
relation to the actual session times. Network delays, processing
delays, etc. will all affect the results.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
__________ Information from ESET Smart Security, version of virus signature database 5858 (20110209) __________
The message was checked by ESET Smart Security.
http://www.eset.com
------------------------------------------------------------------------------
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
__________ Information from ESET Smart Security, version of virus signature database 5858 (20110209) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus signature database 5859 (20110209) __________
The message was checked by ESET Smart Security.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110209/8f908aea/attachment.html>
More information about the Freeradius-Users
mailing list