"Chris Knipe" <[EMAIL PROTECTED]> wrote:
> So basically:
> $RAD_REPLY{'Recv-Limit'} = $BytesAvail - $BytesUsed;
> $RAD_REPLY{'Xmit-Limit'} = $BytesAvail - $BytesUsed;
> doesn't work
> $RAD_REPLY{'Recv-Limit'} = 23423424;
> $RAD_REPLY{'Xmit-Limit'} = 23234242;
> works
Hmm... that looks like rlm_perl isn't looking in the right place for
the values of the perl variables. Not that I know anything about Perl....
> Strange as well, is that format_bytes successfully completes the formating
> and the calculation. Thus, there is also nothing wrong in my code.
Perl keeps values for variables in multiple formats. If rlm_perl
isn't looking in the right place, that may be the problem.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html