Skip to content

Commit 008c561

Browse files
author
thom
committed
Show memory usage in MB's (#3651)
1 parent 2c62c9d commit 008c561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/lib/classes/tools_monitor.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,10 @@ function showMemUsage () {
184184

185185
foreach($data as $key => $value) {
186186
if ($key != '') {
187+
$memory = number_format($value / 1048576);
187188
$html .= '<tr>
188189
<td>' . $key . ':</td>
189-
<td>' . $value . '</td>
190+
<td>' . $memory . 'MB (' . $value . ')</td>
190191
</tr>';
191192
}
192193
}

0 commit comments

Comments
 (0)