adding proper avg shares calculation based on target diff and network diff

This commit is contained in:
Sebastian Grewe 2013-06-13 13:24:46 +02:00
parent 8c01351b76
commit 38f2ae5af7
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ $aGlobal = array(
'blockexplorer' => $config['blockexplorer'],
'chaininfo' => $config['chaininfo'],
'config' => array(
'targetdiff' => $config['difficulty'],
'currency' => $config['currency'],
'txfee' => $config['txfee'],
'payout_system' => $config['payout_system'],

View File

@ -33,7 +33,7 @@
</tr>
<tr>
<td class="leftheader">Est. Avg. Shares per Round</td>
<td>{($ESTTIME * $GLOBAL.sharerate)|number_format:"0"}</td>
<td>{(pow(2, 32 - $GLOBAL.config.targetdiff) * $DIFFICULTY)|number_format:"0"}</td>
</tr>
<tr>
<td class="leftheader">Time Since Last Block</td>