Merge pull request #381 from TheSerapher/issue-378

Use poolhash rate if nethash is smaller
This commit is contained in:
Sebastian Grewe 2013-07-05 13:04:11 -07:00
commit 346d9656d8

View File

@ -28,6 +28,9 @@ $iCurrentActiveWorkers = $worker->getCountAllActiveWorkers();
$iCurrentPoolHashrate = $statistics->getCurrentHashrate();
$iCurrentPoolShareRate = $statistics->getCurrentShareRate();
// Avoid confusion, ensure our nethash isn't higher than poolhash
if ($iCurrentPoolHashrate > $dNetworkHashrate) $dNetworkHashrate = $iCurrentPoolHashrate;
// Global data for Smarty
$aGlobal = array(
'slogan' => $config['website']['slogan'],