From: ivan Date: Sun, 15 Mar 2009 19:00:03 +0000 (+0000) Subject: sync with 1.9, slightly change boudnries of how inexact bytecounts are displayed X-Git-Tag: freeside_1_7_4rc1~100 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=d6c5c05b1aaff98b193838b8f4328a9c827cd669;p=freeside.git sync with 1.9, slightly change boudnries of how inexact bytecounts are displayed --- diff --git a/FS/FS/UI/bytecount.pm b/FS/FS/UI/bytecount.pm index 0891e6d68..0ddc7545c 100644 --- a/FS/FS/UI/bytecount.pm +++ b/FS/FS/UI/bytecount.pm @@ -32,9 +32,9 @@ sub bytecount_unexact { return("$bc bytes") if ($bc < 1000); return(sprintf("%.2f Kbytes", $bc/1024)) - if ($bc < 1000000); + if ($bc < 1048576); return(sprintf("%.2f Mbytes", $bc/1048576)) - if ($bc < 1000000000); + if ($bc < 1073741824); return(sprintf("%.2f Gbytes", $bc/1073741824)); }