Commit 82375683951c4f6eb590c6d0135ae35eaac80fa4

Kano 2012-04-18T21:12:51

miner.php warning highlight GPU stats if they are zero (e.g. ADL not enabled)

diff --git a/miner.php b/miner.php
index 167e976..a8832e4 100644
--- a/miner.php
+++ b/miner.php
@@ -275,10 +275,20 @@ function fmt($section, $name, $value)
  case 'SUMMARY.Utility':
 	$ret = $value.'/m';
 	break;
- case 'GPU.Temperature':
  case 'PGA.Temperature':
 	$ret = $value.'°C';
 	break;
+ case 'GPU.Temperature':
+	$ret = $value.'°C';
+ case 'GPU.Fan Speed':
+ case 'GPU.Fan Percent':
+ case 'GPU.GPU Clock':
+ case 'GPU.Memory Clock':
+ case 'GPU.GPU Voltage':
+ case 'GPU.GPU Activity':
+	if ($value == 0)
+		$class = $warnclass;
+	break;
  case 'GPU.MHS av':
  case 'PGA.MHS av':
  case 'SUMMARY.MHS av':