[freeside-commits] freeside/FS/FS svc_acct.pm, 1.217.2.29, 1.217.2.30
Ivan,,,
ivan at wavetail.420.am
Tue Aug 4 19:27:12 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv6609
Modified Files:
Tag: FREESIDE_1_7_BRANCH
svc_acct.pm
Log Message:
export negative byte values to chillispot attributes as 0, RT#5815
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.217.2.29
retrieving revision 1.217.2.30
diff -u -d -r1.217.2.29 -r1.217.2.30
--- svc_acct.pm 4 Aug 2009 23:49:33 -0000 1.217.2.29
+++ svc_acct.pm 5 Aug 2009 02:27:10 -0000 1.217.2.30
@@ -1408,6 +1408,7 @@
my $is = $whatis{$what}.'bytes';
if ( $self->$is() =~ /\d/ ) {
my $big = new Math::BigInt $self->$is();
+ $big = new Math::BigInto '0' if $big->is_neg();
my $att = "Chillispot-Max-\u$what";
$reply{"$att-Octets"} = $big->copy->band(0xffffffff)->bstr;
$reply{"$att-Gigawords"} = $big->copy->brsft(32)->bstr;
More information about the freeside-commits
mailing list