From 2c3b16e0896704fb8d1ce89d81ae2015a96ff776 Mon Sep 17 00:00:00 2001 From: Kano Date: Sun, 19 Aug 2012 22:24:30 +1000 Subject: [PATCH] miner.php fix Work Utility totals --- miner.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/miner.php b/miner.php index 08516d13..6ac2e275 100644 --- a/miner.php +++ b/miner.php @@ -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) $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() 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('

');