diff options
author | ivan <ivan> | 2010-08-12 22:25:39 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-08-12 22:25:39 +0000 |
commit | 08fab78a2d113fb09785af61cc9e0f0bf23c567e (patch) | |
tree | 4b03bdaa8cb8c8fbf1ed7677446b8347123b9961 | |
parent | 9ce4ac30dbe0c3213836081ed44f5f515c59a338 (diff) |
counter values can be negative
-rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index 0b272b5b1..ba21ab4b5 100755 --- 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 } |