[freeside-commits] freeside/httemplate/edit prepay_credit.cgi, 1.5.2.2, 1.5.2.3
Ivan,,,
ivan at wavetail.420.am
Sun Mar 15 03:32:31 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv23421
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.5.2.2
retrieving revision 1.5.2.3
diff -u -d -r1.5.2.2 -r1.5.2.3
--- prepay_credit.cgi 13 Jan 2008 21:36:08 -0000 1.5.2.2
+++ prepay_credit.cgi 15 Mar 2009 10:32:29 -0000 1.5.2.3
@@ -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