Update user_dashboard.php (#4417)
This commit is contained in:
parent
e576bea93b
commit
afc38bffb2
|
|
@ -1064,6 +1064,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//memory free
|
||||||
|
if (stristr(PHP_OS, 'Linux')) {
|
||||||
|
$result = trim(shell_exec('free -h | grep \'Mem:\' | cut -d\' \' -f25-30'));
|
||||||
|
if ($result != '') {
|
||||||
|
$hud[$n]['html'] .= "<tr class='tr_link_void'>\n";
|
||||||
|
$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text'>".$text['label-memory_free']."</td>\n";
|
||||||
|
$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text' style='text-align: right;'>".$result."</td>\n";
|
||||||
|
$hud[$n]['html'] .= "</tr>\n";
|
||||||
|
$c = ($c) ? 0 : 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//disk usage
|
//disk usage
|
||||||
if (stristr(PHP_OS, 'Linux')) {
|
if (stristr(PHP_OS, 'Linux')) {
|
||||||
//calculated above
|
//calculated above
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue