Commit 39eeca263edb240580ee57841739bf5e092f5482

Kano 2012-04-18T20:55:20

miner.php highlight any Status that isn't 'Alive'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/miner.php b/miner.php
index 6f78750..c5a2e00 100644
--- a/miner.php
+++ b/miner.php
@@ -304,6 +304,13 @@ function fmt($section, $name, $value)
 		$dec = '.'.$parts[1];
 	$ret = number_format($parts[0]).$dec;
 	break;
+ case 'GPU.Status':
+ case 'PGA.Status':
+ case 'POOL.Status':
+	if ($value != 'Alive')
+		$class = $errorclass;
+	break;
+
  }
 
  if ($section == 'NOTIFY' && substr($name, 0, 1) == '*' && $value != '0')