projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3706609
)
counter values can be negative
author
ivan
<ivan>
Thu, 12 Aug 2010 22:25:38 +0000
(22:25 +0000)
committer
ivan
<ivan>
Thu, 12 Aug 2010 22:25:38 +0000
(22:25 +0000)
httemplate/edit/process/svc_acct.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/svc_acct.cgi
b/httemplate/edit/process/svc_acct.cgi
index
0b272b5
..
ba21ab4
100755
(executable)
--- a/
httemplate/edit/process/svc_acct.cgi
+++ b/
httemplate/edit/process/svc_acct.cgi
@@
-70,7
+70,7
@@
if ( $svcnum ) {
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
}