From 6203bfbc824ef42dcc831f48dcaa89dc5a583959 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 1 Dec 2023 12:23: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 0f8d68d44..0091a445d 100644 --- a/emhttp/plugins/dynamix/include/Wrappers.php +++ b/emhttp/plugins/dynamix/include/Wrappers.php @@ -123,7 +123,7 @@ function get_nvme_info($device, $info) { case 'wctemp': return exec("nvme id-ctrl /dev/$device | grep -Pom1 '^wctemp +: \K\d+'")-273; case 'power': - $state = hexdec(exec("nvme get-feature /dev/$device -f2 | grep -Pom1 'value:\K.+'")); + $state = hexdec(exec("nvme get-feature /dev/$device -f2 | grep -Pom1 'value:\K0x\d+'")); return exec("nvme id-ctrl /dev/$device | grep -Pom1 '^ps +$state : mp:\K[^W]+'"); } }