Use poolhash rate if nethash is smaller

This should avoid some confusion for coins where the network hashrate
drops under the pool hashrate due to slow block finding rates.

Fixes #378
This commit is contained in:
Sebastian Grewe 2013-07-05 22:02:16 +02:00
parent 9601f075ce
commit 7099b2cc04

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'],