[freeside-commits] freeside/FS/FS/UI bytecount.pm,1.4,1.5
Ivan,,,
ivan at wavetail.420.am
Thu Jan 29 16:40:54 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail.420.am:/tmp/cvs-serv28975
Modified Files:
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.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- bytecount.pm 4 Oct 2007 02:07:29 -0000 1.4
+++ bytecount.pm 30 Jan 2009 00:40:47 -0000 1.5
@@ -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