diff options
| author | jeff <jeff> | 2007-04-12 03:18:25 +0000 |
|---|---|---|
| committer | jeff <jeff> | 2007-04-12 03:18:25 +0000 |
| commit | 52102268bc5698130474edfda0c3b380426cf325 (patch) | |
| tree | ee1d02f155302b72b7b4b2bde1e25374d6e4e779 /httemplate/edit/process/svc_acct.cgi | |
| parent | 96c091e3dbda1eb26635aee05d29e6b9ce8bc15c (diff) | |
input and output on data volume fields specified with k,m,g,or t (backport)
Diffstat (limited to 'httemplate/edit/process/svc_acct.cgi')
| -rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index 30552c846..65ac5c176 100755 --- a/httemplate/edit/process/svc_acct.cgi +++ b/httemplate/edit/process/svc_acct.cgi @@ -23,6 +23,11 @@ %#unmunge usergroup %$cgi->param('usergroup', [ $cgi->param('radius_usergroup') ] ); % +%#unmunge bytecounts +%foreach (map { $_,$_."_threshold" } qw( upbytes downbytes totalbytes )) { +% $cgi->param($_, FS::UI::Web::parse_bytecount($cgi->param($_)) ); +%} +% %my %hash = $svcnum ? $old->hash : (); %map { % $hash{$_} = scalar($cgi->param($_)); |
