[freeside-commits] freeside/FS/FS svc_acct.pm, 1.217.2.30, 1.217.2.31

Ivan,,, ivan at wavetail.420.am
Tue Aug 4 19:27:38 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv6655

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.30
retrieving revision 1.217.2.31
diff -u -d -r1.217.2.30 -r1.217.2.31
--- svc_acct.pm	5 Aug 2009 02:27:10 -0000	1.217.2.30
+++ svc_acct.pm	5 Aug 2009 02:27:36 -0000	1.217.2.31
@@ -1408,7 +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();
+        $big = new Math::BigInt '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