Updated: NVME power state / temp threshold

This commit is contained in:
bergware
2023-11-30 23:34:30 +01:00
parent bd4751d068
commit 20a4d46013

View File

@@ -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':