Browse Source

miner.php fix Work Utility totals

nfactor-troky
Kano 12 years ago
parent
commit
2c3b16e089
  1. 7
      miner.php

7
miner.php

@ -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…
Cancel
Save