diff --git a/config.php.default b/config.php.default index 1aeeaccd5..e79bc9dde 100755 --- a/config.php.default +++ b/config.php.default @@ -120,8 +120,8 @@ $config['allow_entity_sensor']['specialEnum'] = 1; ### Mountpoints to ignore $config['ignore_mount'] = array("/kern", "/mnt/cdrom", "/dev", "/dev/pts", "/proc/bus/usb"); -$config['ignore_mount_regex'] = array(); -$config['ignore_mount_string'] = array(); +$config['ignore_mount_regexp'] = array(); +$config['ignore_mount_string'] = array("/.*\/dev\/?$/"); ### Style Options diff --git a/html/pages/device/health/storage.inc.php b/html/pages/device/health/storage.inc.php index a6dae830a..0b1b5c575 100644 --- a/html/pages/device/health/storage.inc.php +++ b/html/pages/device/health/storage.inc.php @@ -21,10 +21,10 @@ while($drive = mysql_fetch_array($query)) { if(is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } $total = $drive['hrStorageSize'] * $drive['hrStorageAllocationUnits']; - $used = $drive['hrStorageUsed'] * $drive['hrStorageAllocationUnits']; + $free = $total - $drive['hrStorageUsed'] * $drive['hrStorageAllocationUnits']; $perc = round($drive['storage_perc'], 0); $total = formatStorage($total); - $used = formatStorage($used); + $free = formatStorage($free); $fs_url = "?page=device&id=".$device['device_id']."§ion=dev-storage"; @@ -36,7 +36,7 @@ while($drive = mysql_fetch_array($query)) { echo("