summaryrefslogtreecommitdiff
path: root/inc/JpegMeta.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-08-09 23:37:53 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-08-09 23:37:53 +0200
commitfe00a666958f5b9f991d8979b80265d7a927c3a0 (patch)
tree5578bc9ea86e97a85b49d53bc7d914f22074a2d5 /inc/JpegMeta.php
parentc3673e6143da7434296ae6ca9179c7c4489f589d (diff)
downloadrpg-fe00a666958f5b9f991d8979b80265d7a927c3a0.tar.gz
rpg-fe00a666958f5b9f991d8979b80265d7a927c3a0.tar.bz2
show correct megabyte size for image details FS#1217
darcs-hash:20070809213753-7ad00-95904b1effbd827c0b5b1ed73879d99d99175fc6.gz
Diffstat (limited to 'inc/JpegMeta.php')
-rw-r--r--inc/JpegMeta.php2
1 files changed, 1 insertions, 1 deletions
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';