Question about timestamps

Chris Adams (cadams@ro.com)
Mon, 24 Feb 1997 13:49:54 -0600 (CST)

I am trying to write some custom scripts to read RADIUS accounting logs
and collect information about line usage and time usage for users. The
problem I am having is that I assumed that the times in the start and
stop records were consistent.

I do the following to figure times:
starttime = Start->Timestamp - Start->Acct-Delay-Time
endtime = Stop->Timestamp - Stop-Acct-Delay-Time

The problem I am having is that
endtime - starttime != Stop>Acct-Session-Time

Most of the time, the difference is only a second, but so far I have
seen differences of 6 to 8 seconds.

Why is this happening? Which time should I trust? I guess the
"Timestamp" is the same as the time at the top of each record. Is this
not a reliable time? If not, why not?

-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.