Browse Source

miner.php fix Work Utility totals

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

7
miner.php

@ -617,7 +617,6 @@ function fmt($section, $name, $value, $when, $alldata) @@ -617,7 +617,6 @@ function fmt($section, $name, $value, $when, $alldata)
case 'PGA.Utility':
case 'DEVS.Utility':
case 'SUMMARY.Utility':
case 'SUMMARY.Work Utility':
case 'total.Utility':
$ret = $value.'/m';
if ($value == 0)
@ -636,6 +635,10 @@ function fmt($section, $name, $value, $when, $alldata) @@ -636,6 +635,10 @@ function fmt($section, $name, $value, $when, $alldata)
$class = $hiclass;
}
break;
case 'SUMMARY.Work Utility':
case 'total.Work Utility':
$ret = $value.'/m';
break;
case 'PGA.Temperature':
case 'GPU.Temperature':
case 'DEVS.Temperature':
@ -2027,7 +2030,7 @@ function display() @@ -2027,7 +2030,7 @@ function display()
newtable();
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);
endtable();
otherrow('<td><br><br></td>');

Loading…
Cancel
Save