From af818ef76ee81536ff7bfd770b909ea285071e9e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 30 Jan 2009 00:40:47 +0000 Subject: [PATCH] we're not a disk drive manufacturer --- FS/FS/UI/bytecount.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FS/FS/UI/bytecount.pm b/FS/FS/UI/bytecount.pm index d278dbecc..0891e6d68 100644 --- a/FS/FS/UI/bytecount.pm +++ b/FS/FS/UI/bytecount.pm @@ -31,11 +31,11 @@ sub bytecount_unexact { 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 -- 2.11.0