From fe00a666958f5b9f991d8979b80265d7a927c3a0 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Thu, 9 Aug 2007 23:37:53 +0200
Subject: [PATCH] show correct megabyte size for image details FS#1217

darcs-hash:20070809213753-7ad00-95904b1effbd827c0b5b1ed73879d99d99175fc6.gz
---
 inc/JpegMeta.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/JpegMeta.php b/inc/JpegMeta.php
index 885f565e2..1b57ccd05 100644
--- a/inc/JpegMeta.php
+++ b/inc/JpegMeta.php
@@ -1205,7 +1205,7 @@ class JpegMeta
                 $this->_info['file']['NiceSize'] = round($this->_info['file']['Size'] / 1024) . 'KB';
             }
             elseif ($this->_info['file']['Size'] < (1024 * 1024 * 1024)) {
-                $this->_info['file']['NiceSize'] = round($this->_info['file']['Size'] / 1024) . 'MB';
+                $this->_info['file']['NiceSize'] = round($this->_info['file']['Size'] / (1024*1024)) . 'MB';
             }
             else {
                 $this->_info['file']['NiceSize'] = $this->_info['file']['Size'] . 'B';
-- 
GitLab