SMART reading updates

This commit is contained in:
bergware
2020-07-11 13:05:19 +02:00
parent f9966e1286
commit b023ff735f
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ function read_disk($name, $part) {
$smart = "/var/local/emhttp/smart/$name";
$type = $var['smType'] ?? '';
// read and store SMART attributes of unassigned devices, take SMART poll interval and active disk status into consideration
if (poll_timer($smart) && disk_active($port)) exec("smartctl -A $type /dev/$port >".escapeshellarg($smart)." &");
if (poll_timer($smart) && disk_active($port)) exec("smartctl -A $type /dev/$port >".escapeshellarg($smart));
return read_temp($smart);
}
}