yes my friend, i have tried it and its not working either. I thought it was only query for invert the counting into reverse order from the beginning. In my case my time limitation is working fine,the issues is only about quota limitation. Im using quota limitiation with reset set to daily. Im not using noresetcounter. But if i put those two counter together (both check about quota and time), my time counter is not working too (sometimes its working sometimes not). Here my counter looks like now:
sqlcounter quotalimit {
counter-name = Total-Max-Octets
check-name = Max-Daily-Octets
reply-name = Chillispot-Max-Total-Octets
key = User-Name
reset = daily
query = "SELECT IFNULL(SUM(acctinputoctets+acctoutputoctets),0) from radacct WHERE UserName='%{%k}'"
sqlmod-inst = sql
}
Im wonder why its not working, It will not disconnect if the quota has reached. But if we logout and login again, the counter is working and return message that our daily quota has reached the limit. After a day, the counter still not resetted and the user still cant login because quota has reached the limit. I can login again after i delete radacct record for this user.
Im had checked in debug mode, i dont think there is an error because it say that the counter will be resetted on the next day. I should be working.. strange isnt it?
Please Let me know if you found anything..