From f45fd2e45680bc288b3d791ee1328bcf167908fd Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 30 Nov 2023 23:05:17 +0100 Subject: [PATCH] Updated: NVME power state / temp threshold --- emhttp/plugins/dynamix/include/Wrappers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/Wrappers.php b/emhttp/plugins/dynamix/include/Wrappers.php index 906490128..2124b8fda 100644 --- a/emhttp/plugins/dynamix/include/Wrappers.php +++ b/emhttp/plugins/dynamix/include/Wrappers.php @@ -116,9 +116,9 @@ function isSubpool($name) { function get_nvme_info($device, $info) { switch ($info) { case 'cctemp': - return explode(':',exec("nvme id-ctrl /dev/$device | grep '^cctemp '"))[1] - 273; + return my_explode(':',exec("nvme id-ctrl /dev/$device | grep '^cctemp '"))[1] - 273; case 'wctemp': - return explode(':',exec("nvme id-ctrl /dev/$device | grep '^wctemp '"))[1] - 273; + 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');