Merge pull request #1330 from phil-davis/patch-1
This commit is contained in:
commit
10435fa9f7
|
@ -2080,7 +2080,8 @@ function get_smart_drive_list() {
|
|||
$disk_list = explode(" ", get_single_sysctl("kern.disks"));
|
||||
foreach ($disk_list as $id => $disk) {
|
||||
// We only want certain kinds of disks for S.M.A.R.T.
|
||||
if (preg_match("/^(ad|da|ada).*[0-9]{1,2}$/", $disk) === FALSE) {
|
||||
// 1 is a match, 0 is no match, False is any problem processing the regex
|
||||
if (preg_match("/^(ad|da|ada).*[0-9]{1,2}$/", $disk) !== 1) {
|
||||
unset($disk_list[$id]);
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue