mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update user_dashboard.php (#4428)
This commit is contained in:
@@ -1064,12 +1064,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//memory free
|
//memory available
|
||||||
if (stristr(PHP_OS, 'Linux')) {
|
if (stristr(PHP_OS, 'Linux')) {
|
||||||
$result = trim(shell_exec('free -h | grep \'Mem:\' | cut -d\' \' -f25-30'));
|
$result = trim(shell_exec('free -hw | grep \'Mem:\' | cut -d\' \' -f 58-64'));
|
||||||
if ($result != '') {
|
if ($result != '') {
|
||||||
$hud[$n]['html'] .= "<tr class='tr_link_void'>\n";
|
$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'>".$text['label-memory_available']."</td>\n";
|
||||||
$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text' style='text-align: right;'>".$result."</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";
|
$hud[$n]['html'] .= "</tr>\n";
|
||||||
$c = ($c) ? 0 : 1;
|
$c = ($c) ? 0 : 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user