aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-07-11 01:09:59 +0000
committerCash Costello <cash.costello@gmail.com>2009-07-11 01:09:59 +0000
commit14556cf5870dff8138c76a25aba9c2c0323c56d1 (patch)
tree502c5bccc4a51ccb66c2a72ff1a88ba4a9714e74
parentd19606b96ba0f5ed56e9e736b8fe88210528577c (diff)
downloadelgg-14556cf5870dff8138c76a25aba9c2c0323c56d1.tar.gz
elgg-14556cf5870dff8138c76a25aba9c2c0323c56d1.tar.bz2
hopefully fixes the problems that some had with server analysis
-rw-r--r--system.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system.php b/system.php
index 24295c715..549c51de4 100644
--- a/system.php
+++ b/system.php
@@ -21,6 +21,9 @@
function tp_readable_size($bytes)
{
+ if (strpos($bytes, 'M'))
+ return $bytes . 'B';
+
$size = $bytes / 1024;
if ($size < 1024) {
$size = number_format($size, 2);
@@ -72,7 +75,7 @@
</tr>
<tr>
<td>Memory Available to PHP</td>
- <td><?php echo ini_get('memory_limit'); ?>B</td>
+ <td><?php echo tp_readable_size(ini_get('memory_limit')); ?></td>
<td>Change memory_limit to increase</td>
</tr>
<tr>