Revert "Show nvme devices in SMART disk list. Fixes #9042"

This reverts commit bdb6021f79.
This commit is contained in:
jim-p 2018-10-15 15:20:33 -04:00
parent bdb6021f79
commit dba7debb2e

View File

@ -2602,7 +2602,7 @@ function get_smart_drive_list() {
foreach ($disk_list as $id => $disk) {
// We only want certain kinds of disks for S.M.A.R.T.
// 1 is a match, 0 is no match, False is any problem processing the regex
if (preg_match("/^(ad|da|ada|nvme).*[0-9]{1,2}$/", $disk) !== 1) {
if (preg_match("/^(ad|da|ada).*[0-9]{1,2}$/", $disk) !== 1) {
unset($disk_list[$id]);
}
}