[freeside-commits] freeside/httemplate/edit prepay_credit.cgi, 1.7, 1.8
Ivan,,,
ivan at wavetail.420.am
Sun Mar 15 03:30:29 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv23310/httemplate/edit
Modified Files:
prepay_credit.cgi
Log Message:
we're not a disk drive manufacturer, don't use halfass base-10 megs/gigs
Index: prepay_credit.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/prepay_credit.cgi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- prepay_credit.cgi 13 Jan 2008 21:35:52 -0000 1.7
+++ prepay_credit.cgi 15 Mar 2009 10:30:26 -0000 1.8
@@ -97,14 +97,14 @@
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>
More information about the freeside-commits
mailing list