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:
parent
9601f075ce
commit
7099b2cc04
@ -28,6 +28,9 @@ $iCurrentActiveWorkers = $worker->getCountAllActiveWorkers();
|
|||||||
$iCurrentPoolHashrate = $statistics->getCurrentHashrate();
|
$iCurrentPoolHashrate = $statistics->getCurrentHashrate();
|
||||||
$iCurrentPoolShareRate = $statistics->getCurrentShareRate();
|
$iCurrentPoolShareRate = $statistics->getCurrentShareRate();
|
||||||
|
|
||||||
|
// Avoid confusion, ensure our nethash isn't higher than poolhash
|
||||||
|
if ($iCurrentPoolHashrate > $dNetworkHashrate) $dNetworkHashrate = $iCurrentPoolHashrate;
|
||||||
|
|
||||||
// Global data for Smarty
|
// Global data for Smarty
|
||||||
$aGlobal = array(
|
$aGlobal = array(
|
||||||
'slogan' => $config['website']['slogan'],
|
'slogan' => $config['website']['slogan'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user