From 20a4d4601392a85c8a15f3f1248d92a6d9145fa1 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 30 Nov 2023 23:34:30 +0100 Subject: [PATCH] Updated: NVME power state / temp threshold --- emhttp/plugins/dynamix/include/Wrappers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/Wrappers.php b/emhttp/plugins/dynamix/include/Wrappers.php index 6a797555e..3f1b5900e 100644 --- a/emhttp/plugins/dynamix/include/Wrappers.php +++ b/emhttp/plugins/dynamix/include/Wrappers.php @@ -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':