On Mon, Feb 7, 2011 at 1:48 PM, Tyller D <[email protected]> wrote:
>                                         return RLM_MODULE_REJECT;
>                                         $RAD_REPLY{'Nomadix-MaxBytesDown'} =


> so the value for databank in the radcheck table should always be equal to
> databank - sum(acctoutputoctest + acctinputoctets)
>
> but it not always exectuting stop request correctly because
>
> mysql> select sum(acctinputoctets + acctoutputoctets) from radacct where
> username='scotty';
> +-----------------------------------------+
> | sum(acctinputoctets + acctoutputoctets) |
> +-----------------------------------------+
> |                              1840263628 |
> +-----------------------------------------+
>
>
> mysql> select value from radcheck where username='scotty' and
> attribute='databank';
> +------------+
> | value      |
> +------------+
> | -302340151 |
> +------------+


So what error did you find exactly? Is it that "it works but I get
negative number on databank"?

If yes, then it's normal, cause you only limit downloads
(Nomadix-MaxBytesDown) while in the update calculation during acct
stop you calculate both upload and download.

-- 
Fajar

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to