1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

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

This commit is contained in:
Kano 2012-04-18 21:12:51 +10:00
parent d5323b7c0c
commit 8237568395

View File

@ -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':