mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
Updated: NVME power state / temp threshold
This commit is contained in:
@@ -117,7 +117,7 @@ function get_nvme_info($device, $info) {
|
||||
switch ($info) {
|
||||
case 'temp':
|
||||
exec("nvme id-ctrl /dev/$device | grep '^[wc]ctemp '",$temp);
|
||||
return [my_explode(':',$temp[0])[1]-273,my_explode(':',$temp[1])[1]-273];
|
||||
return [my_explode(':',$temp[0])[1]-273, my_explode(':',$temp[1])[1]-273];
|
||||
case 'cctemp':
|
||||
return my_explode(':',exec("nvme id-ctrl /dev/$device | grep '^cctemp '"))[1]-273;
|
||||
case 'wctemp':
|
||||
|
||||
Reference in New Issue
Block a user