Fixed regression error in Dashboard statistics table

This commit is contained in:
bergware
2017-11-16 10:43:18 +01:00
parent c081907483
commit 59b240f1cf
+1 -1
View File
@@ -133,7 +133,7 @@ case 'disk':
$hot = $_POST['hot'];
$max = $_POST['max'];
$top = $_POST['top'] ?? 120;
$name = $dev['device'];
$name = $disk['device'];
$port = substr($name,-2)!='n1' ? $name : substr($name,0,-2);
$smart = "state/smart/$name";
$state = exec("hdparm -C ".escapeshellarg("/dev/$port")."|grep -Po 'active|unknown'") ? 'blue-on' : 'blue-blink';