]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
hopefully fixes the problems that some had with server analysis
authorCash Costello <cash.costello@gmail.com>
Sat, 11 Jul 2009 01:09:59 +0000 (01:09 +0000)
committerCash Costello <cash.costello@gmail.com>
Sat, 11 Jul 2009 01:09:59 +0000 (01:09 +0000)
system.php

index 24295c7152562cd7319b90e3fe8a2276ea5a585d..549c51de4593ecae461da31a5b4cc90367310d36 100644 (file)
@@ -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>