[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.17, 1.18

Ivan,,, ivan at wavetail.420.am
Thu Aug 12 15:25:40 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv8460

Modified Files:
	svc_acct.cgi 
Log Message:
counter values can be negative

Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_acct.cgi,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- svc_acct.cgi	29 Jun 2010 01:01:59 -0000	1.17
+++ svc_acct.cgi	12 Aug 2010 22:25:38 -0000	1.18
@@ -70,7 +70,7 @@
                grep { $new->$_ }
                qw( seconds upbytes downbytes totalbytes );
 
-    $error ||= "invalid $_" foreach grep { $hash{$_} !~ /^\d+$/ } keys %hash;
+    $error ||= "invalid $_" foreach grep { $hash{$_} !~ /^-?\d+$/ } keys %hash;
     $error ||= $new->set_usage(\%hash);  #unoverlimit and trigger radius changes
     last;                                #once is enough
   }



More information about the freeside-commits mailing list