Browse Source

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

Kano 14 years ago
parent
commit
39eeca263e
1 changed files with 7 additions and 0 deletions
  1. 7 0
      miner.php

+ 7 - 0
miner.php

@@ -304,6 +304,13 @@ function fmt($section, $name, $value)
 		$dec = '.'.$parts[1];
 		$dec = '.'.$parts[1];
 	$ret = number_format($parts[0]).$dec;
 	$ret = number_format($parts[0]).$dec;
 	break;
 	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')
  if ($section == 'NOTIFY' && substr($name, 0, 1) == '*' && $value != '0')