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

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


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

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.263
retrieving revision 1.264
diff -u -d -r1.263 -r1.264
--- svc_acct.pm	4 Aug 2009 23:43:48 -0000	1.263
+++ svc_acct.pm	5 Aug 2009 02:27:08 -0000	1.264
@@ -1455,6 +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();
         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