From 8aa102b5956ce81e34ab40533a7746293bc3f295 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 30 Nov 2023 23:42:25 +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 3f1b5900e..c08b0ae41 100644 --- a/emhttp/plugins/dynamix/include/Wrappers.php +++ b/emhttp/plugins/dynamix/include/Wrappers.php @@ -124,7 +124,7 @@ function get_nvme_info($device, $info) { return my_explode(':',exec("nvme id-ctrl /dev/$device | grep '^wctemp '"))[1]-273; case 'power': $state = hexdec(my_explode(':',exec("nvme get-feature /dev/$device -f 2"),3)[2]); - return strtok(explode(':',exec("nvme id-ctrl /dev/$device | grep '^ps $state '"))[2],'W'); + return strtok(my_explode(':',exec("nvme id-ctrl /dev/$device | grep '^ps $state '"),3)[2],'W'); } } // convert strftime to date format