[freeside-commits] freeside/FS/FS/UI bytecount.pm,1.1.2.5,1.1.2.6
Ivan,,,
ivan at wavetail.420.am
Thu Jan 29 16:41:27 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail.420.am:/tmp/cvs-serv28977
Modified Files:
Tag: FREESIDE_1_7_BRANCH
bytecount.pm
Log Message:
we're not a disk drive manufacturer
Index: bytecount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/bytecount.pm,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -d -r1.1.2.5 -r1.1.2.6
--- bytecount.pm 4 Oct 2007 02:06:53 -0000 1.1.2.5
+++ bytecount.pm 30 Jan 2009 00:41:23 -0000 1.1.2.6
@@ -31,11 +31,11 @@
my $bc = shift;
return("$bc bytes")
if ($bc < 1000);
- return(sprintf("%.2f Kbytes", $bc/1000))
+ return(sprintf("%.2f Kbytes", $bc/1024))
if ($bc < 1000000);
- return(sprintf("%.2f Mbytes", $bc/1000000))
+ return(sprintf("%.2f Mbytes", $bc/1048576))
if ($bc < 1000000000);
- return(sprintf("%.2f Gbytes", $bc/1000000000));
+ return(sprintf("%.2f Gbytes", $bc/1073741824));
}
=item parse_bytecount AMOUNT
More information about the freeside-commits
mailing list