mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 23:20:35 -06:00
Update Helpers.php
This commit is contained in:
@@ -265,7 +265,7 @@ function delete_file(...$file) {
|
||||
array_map('unlink',array_filter($file,'file_exists'));
|
||||
}
|
||||
function getnvmepowerstate($device) {
|
||||
if (!exec("which nvme 2>/dev/null")) return;
|
||||
if (!exec("which nvme 2>/dev/null")) return; // temporary check
|
||||
exec("nvme id-ctrl $device | grep -E 'ps |wctemp|cctemp'",$rows);
|
||||
foreach ($rows as $row){
|
||||
if (!$row) continue;
|
||||
|
||||
Reference in New Issue
Block a user