Counters reset period

liran tal liransgarage at gmail.com
Mon Feb 15 17:00:34 CET 2010


On Mon, Feb 15, 2010 at 5:21 PM, Alan DeKok <aland at deployingradius.com>wrote:

> liran tal wrote:
> >
> > It seems that the counting period is X months until the current month.
> > So if reset=3m is specified and it's now February it will count 3 months
> > earlier (thus, december, january and february).
> >
> > I'm wondering if anybody has some insight regarding yearly recurring
> > quarterly periods (months:1-3,4-6,7-9,10-12).
>
>   Use a cron job && SQL statements.
>
>
Alan, could you explain?

Since the '3m' reset period didn't work as I expected I patched the
rlm_sqlcounter.c to reset counters
on a quarterly cycle. Though I'd appreciate to hear from you another
approach to this.


Regards,
Liran Tal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100215/812ea1fd/attachment.html>


More information about the Freeradius-Users mailing list