From: Michael M Slusarz Date: Wed, 7 Jan 2009 23:37:28 +0000 (-0700) Subject: No need to be so accurate on attachment size. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=90c94cdeda30c94f9dc8f89f80f1c662cd5008e9;p=horde.git No need to be so accurate on attachment size. --- diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 02fbf6f5b..1b2fa0850 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -533,8 +533,8 @@ class IMP_Contents $size = $mime_part->getSize(true); } $part['size'] = ($size > 1024) - ? sprintf(_("%s MB"), number_format(max(($size / 1024), 1))) - : sprintf(_("%s KB"), $size); + ? sprintf(_("%s MB"), number_format(max(($size / 1024)))) + : sprintf(_("%s KB"), round($size) || 1); } /* Get part's icon. */