Commit d5323b7c0c029da8bda60452dbe076d17f3061a4

Kano 2012-04-18T21:01:42

miner.php highlight any device that isn't 'Enabled'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/miner.php b/miner.php
index c5a2e00..167e976 100644
--- a/miner.php
+++ b/miner.php
@@ -310,7 +310,11 @@ function fmt($section, $name, $value)
 	if ($value != 'Alive')
 		$class = $errorclass;
 	break;
-
+ case 'GPU.Enabled':
+ case 'PGA.Enabled':
+	if ($value != 'Y')
+		$class = $warnclass;
+	break;
  }
 
  if ($section == 'NOTIFY' && substr($name, 0, 1) == '*' && $value != '0')