From 90c94cdeda30c94f9dc8f89f80f1c662cd5008e9 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 7 Jan 2009 16:37:28 -0700 Subject: [PATCH] No need to be so accurate on attachment size. --- imp/lib/Contents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.11.0