[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.11.4.5, 1.11.4.6
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-serv8464
Modified Files:
Tag: FREESIDE_1_9_BRANCH
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.11.4.5
retrieving revision 1.11.4.6
diff -u -w -d -r1.11.4.5 -r1.11.4.6
--- svc_acct.cgi 29 Jun 2010 01:02:35 -0000 1.11.4.5
+++ svc_acct.cgi 12 Aug 2010 22:25:38 -0000 1.11.4.6
@@ -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