mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-03 06:24:38 -04:00
Disk : add filesystem and option to enable/disable it (disk:show_filesystem)
Network usage : center values of receive and transmit
This commit is contained in:
+7
-2
@@ -18,6 +18,7 @@ if (!(exec('/bin/df -T | awk -v c=`/bin/df -T | grep -bo "Type" | awk -F: \'{pri
|
||||
else
|
||||
{
|
||||
$mounted_points = array();
|
||||
$key = 0;
|
||||
|
||||
foreach ($df as $mounted)
|
||||
{
|
||||
@@ -30,15 +31,19 @@ else
|
||||
{
|
||||
$mounted_points[] = trim($mount);
|
||||
|
||||
$datas[] = array(
|
||||
$datas[$key] = array(
|
||||
'total' => Misc::getSize($total * 1024),
|
||||
'used' => Misc::getSize($used * 1024),
|
||||
'free' => Misc::getSize($free * 1024),
|
||||
'percent_used' => trim($percent, '%'),
|
||||
'mount' => $mount,
|
||||
'filesystem' => $filesystem,
|
||||
);
|
||||
|
||||
if ($Config->get('disk:show_filesystem'))
|
||||
$datas[$key]['filesystem'] = $filesystem;
|
||||
}
|
||||
|
||||
$key++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user