From 3f6a49bae3ec616469f21dfbbbaff052055b0c0e Mon Sep 17 00:00:00 2001 From: ShevAbam Date: Wed, 18 Jun 2014 10:15:18 +0200 Subject: - System : fix to get the distro name - Services : fix on service names with accent - Services : ability to specify a host for each service - Network usage : fix to retrieve the name of the network interfaces - Memory : the cached and buffers memory are added to free memory now - Load Average : taking into account the number of cores - Disk usage : new option to hide tmpfs mountpoints - General : remove all PHP short tags --- libs/disk.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'libs/disk.php') diff --git a/libs/disk.php b/libs/disk.php index d3d3199..811b0b8 100644 --- a/libs/disk.php +++ b/libs/disk.php @@ -1,9 +1,11 @@ 'N.A', @@ -15,19 +17,14 @@ if (!(exec('/bin/df | awk \'{print $2","$3","$4","$5","$6}\'', $df))) } else { - $first_line = false; - $mounted_points = array(); foreach ($df as $mounted) { - if ($first_line === false) - { - $first_line = true; - continue; - } + list($type, $total, $used, $free, $percent, $mount) = explode(',', $mounted); - list($total, $used, $free, $percent, $mount) = explode(',', $mounted); + if (strpos($type, 'tmpfs') !== false && $Config->get('disk:show_tmpfs') === false) + continue; if (!in_array($mount, $mounted_points)) { -- cgit v1.3