This was a BUG. Acct-Delay-Time can be subtracted from the time of arrival on the...
authorpnixon <pnixon>
Tue, 31 Oct 2006 14:38:42 +0000 (14:38 +0000)
committerpnixon <pnixon>
Tue, 31 Oct 2006 14:38:42 +0000 (14:38 +0000)
raddb/sql/postgresql-dialup.conf

index 70fb563..b58e062 100644 (file)
 
   accounting_update_query = "UPDATE ${acct_table1} \
     SET FramedIPAddress = NULLIF('%{Framed-IP-Address}', '')::inet, \
-    AcctSessionTime = (EXTRACT(EPOCH FROM (now()::TIMESTAMP WITH TIME ZONE - AcctStartTime::TIMESTAMP WITH TIME ZONE \
-    - '%{Acct-Delay-Time:-0}'::interval)))::BIGINT, \
+    AcctSessionTime = '%{Acct-Session-Time}', \
     AcctInputOctets = (('%{Acct-Input-Gigawords:-0}'::bigint << 32) + '%{Acct-Input-Octets:-0}'::bigint), \
     AcctOutputOctets = (('%{Acct-Output-Gigawords:-0}'::bigint << 32) + '%{Acct-Output-Octets:-0}'::bigint) \
     WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}' \