From 1d4ae186ab1410766e4b5a3c43f01b73ecd2f22d Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 16 May 2015 23:42:26 +0100 Subject: [PATCH] Removed drive ignore code --- html/includes/table/storage.inc.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/html/includes/table/storage.inc.php b/html/includes/table/storage.inc.php index 0aa596259..a381a63c2 100644 --- a/html/includes/table/storage.inc.php +++ b/html/includes/table/storage.inc.php @@ -43,28 +43,6 @@ if ($rowCount != -1) { $sql = "SELECT * $sql"; foreach (dbFetchRows($sql,$param) as $drive) { - $skipdrive = 0; - - if ($drive["os"] == "junos") { - foreach ($config['ignore_junos_os_drives'] as $jdrive) { - if (preg_match($jdrive, $drive["storage_descr"])) { - $skipdrive = 1; - } - } - $drive["storage_descr"] = preg_replace("/.*mounted on: (.*)/", "\\1", $drive["storage_descr"]); - } - - if ($drive['os'] == "freebsd") { - foreach ($config['ignore_bsd_os_drives'] as $jdrive) { - if (preg_match($jdrive, $drive["storage_descr"])) { - $skipdrive = 1; - } - } - } - - if ($skipdrive) { - continue; - } $perc = round($drive['storage_perc'], 0); $total = formatStorage($drive['storage_size']);