From: ivan Date: Fri, 30 Jan 2009 00:40:47 +0000 (+0000) Subject: we're not a disk drive manufacturer X-Git-Tag: root_of_webpay_support~97 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=af818ef76ee81536ff7bfd770b909ea285071e9e we're not a disk drive manufacturer --- 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