From ce38e7cf71dcfc3f7504fe222ca09765d2e00002 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 30 Oct 2017 09:01:59 +0100 Subject: [PATCH] Minor code changes --- plugins/dynamix/include/DeviceList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/DeviceList.php b/plugins/dynamix/include/DeviceList.php index 8c2809859..1b75d7c19 100644 --- a/plugins/dynamix/include/DeviceList.php +++ b/plugins/dynamix/include/DeviceList.php @@ -238,7 +238,7 @@ function my_clock($time) { } function read_disk($name, $part) { global $var; - $port = substr($name,-2)!='n1' ? $name : substr($name,0,-2); + $port = port_name($name); switch ($part) { case 'color': return exec("hdparm -C ".escapeshellarg("/dev/$port")."|grep -Po 'active|unknown'") ? 'blue-on' : 'blue-blink';