mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-10 21:22:30 +00:00
miner.php fix Work Utility totals
This commit is contained in:
parent
b4eb32749d
commit
2c3b16e089
@ -617,7 +617,6 @@ function fmt($section, $name, $value, $when, $alldata)
|
|||||||
case 'PGA.Utility':
|
case 'PGA.Utility':
|
||||||
case 'DEVS.Utility':
|
case 'DEVS.Utility':
|
||||||
case 'SUMMARY.Utility':
|
case 'SUMMARY.Utility':
|
||||||
case 'SUMMARY.Work Utility':
|
|
||||||
case 'total.Utility':
|
case 'total.Utility':
|
||||||
$ret = $value.'/m';
|
$ret = $value.'/m';
|
||||||
if ($value == 0)
|
if ($value == 0)
|
||||||
@ -636,6 +635,10 @@ function fmt($section, $name, $value, $when, $alldata)
|
|||||||
$class = $hiclass;
|
$class = $hiclass;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'SUMMARY.Work Utility':
|
||||||
|
case 'total.Work Utility':
|
||||||
|
$ret = $value.'/m';
|
||||||
|
break;
|
||||||
case 'PGA.Temperature':
|
case 'PGA.Temperature':
|
||||||
case 'GPU.Temperature':
|
case 'GPU.Temperature':
|
||||||
case 'DEVS.Temperature':
|
case 'DEVS.Temperature':
|
||||||
@ -2027,7 +2030,7 @@ function display()
|
|||||||
|
|
||||||
newtable();
|
newtable();
|
||||||
doforeach('version', 'rig summary', array(), array(), true);
|
doforeach('version', 'rig summary', array(), array(), true);
|
||||||
$sum = array('MHS av', 'Getworks', 'Found Blocks', 'Accepted', 'Rejected', 'Discarded', 'Stale', 'Utility', 'Local Work', 'Total MH');
|
$sum = array('MHS av', 'Getworks', 'Found Blocks', 'Accepted', 'Rejected', 'Discarded', 'Stale', 'Utility', 'Local Work', 'Total MH', 'Work Utility');
|
||||||
doforeach('summary', 'summary information', $sum, array(), false);
|
doforeach('summary', 'summary information', $sum, array(), false);
|
||||||
endtable();
|
endtable();
|
||||||
otherrow('<td><br><br></td>');
|
otherrow('<td><br><br></td>');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user