[freeside-commits] freeside/FS/FS svc_acct.pm,1.264,1.265

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


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

Modified Files:
	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.264
retrieving revision 1.265
diff -u -d -r1.264 -r1.265
--- svc_acct.pm	5 Aug 2009 02:27:08 -0000	1.264
+++ svc_acct.pm	5 Aug 2009 02:27:35 -0000	1.265
@@ -1455,7 +1455,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