mirror of
https://github.com/unraid/webgui.git
synced 2026-04-29 06:19:30 -05:00
SMART reading updates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user