Navigation Menu

Skip to content

Commit

Permalink
Sessions may not exist. Address #924 for MySQL
Browse files Browse the repository at this point in the history
We still need to audit / do something similar for the other DBs
  • Loading branch information
alandekok committed Apr 10, 2015
1 parent 681e365 commit e4fef74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raddb/mods-config/sql/counter/mysql/expire_on_login.conf
@@ -1,5 +1,5 @@
query = "\
SELECT TIMESTAMPDIFF(SECOND, acctstarttime, NOW()) \
SELECT IFNULL( MAX(TIME_TO_SEC(TIMEDIFF(NOW(), acctstarttime))),0) \
FROM radacct \
WHERE UserName='%{${key}}' \
ORDER BY acctstarttime \
Expand Down

0 comments on commit e4fef74

Please sign in to comment.