diff options
author | ivan <ivan> | 2009-03-15 10:30:26 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-03-15 10:30:26 +0000 |
commit | dc24b4b7e2e41dbb3039e9ce367b018fef299ade (patch) | |
tree | 7b0e400a57153c68ba05d96dbc5a73dfa4346366 /httemplate/edit | |
parent | 5cf0508a1ec3dafaeef8a4bd206ef5e5b51235c8 (diff) |
we're not a disk drive manufacturer, don't use halfass base-10 megs/gigs
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/prepay_credit.cgi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httemplate/edit/prepay_credit.cgi b/httemplate/edit/prepay_credit.cgi index 9e1c30ba6..ed404b7cd 100644 --- a/httemplate/edit/prepay_credit.cgi +++ b/httemplate/edit/prepay_credit.cgi @@ -97,14 +97,14 @@ tie my %multiplier, 'Tie::IxHash', tie my %bytemultiplier, 'Tie::IxHash', 1 => 'bytes', - 1000 => 'Kbytes', - 1000000 => 'Mbytes', - 1000000000 => 'Gbytes', + 1024 => 'Kbytes', + 1048576 => 'Mbytes', + 1073741824 => 'Gbytes', ; $cgi->param('multiplier', '60') unless $cgi->param('multiplier'); -$cgi->param('upmultiplier', '1000000') unless $cgi->param('upmultiplier'); -$cgi->param('downmultiplier', '1000000') unless $cgi->param('downmultiplier'); -$cgi->param('totalmultiplier','1000000') unless $cgi->param('totalmultiplier'); +$cgi->param('upmultiplier', '1048576') unless $cgi->param('upmultiplier'); +$cgi->param('downmultiplier', '1048576') unless $cgi->param('downmultiplier'); +$cgi->param('totalmultiplier','1048576') unless $cgi->param('totalmultiplier'); </%init> |