SET \
acctstoptime = %{%{integer:Event-Timestamp}:-date('now')}, \
acctsessiontime = \
- %{%{integer:Event-Timestamp}:-strftime('%%s', 'now')} \
+ (%{%{integer:Event-Timestamp}:-strftime('%%s', 'now')} \
- strftime('%%s', acctstarttime)), \
acctterminatecause = '%{Acct-Terminate-Cause}' \
WHERE acctstoptime IS NULL \
'%{NAS-IP-Address}', \
'%{NAS-Port}', \
'%{NAS-Port-Type}', \
- %{%{integer:Event-Timestamp}:-strftime('%%s', 'now')} - %{%{Acct-Session-Time}:-0}), \
+ (%{%{integer:Event-Timestamp}:-strftime('%%s', 'now')} - %{%{Acct-Session-Time}:-0}), \
%{%{integer:Event-Timestamp}:-date('now')}, \
%{%{integer:Event-Timestamp}:-date('now')}, \
'%{Acct-Session-Time}', \