reduced blocks count to fixed 20

This commit is contained in:
Sebastian Grewe 2013-06-28 20:29:51 +02:00
parent 036df27bf1
commit 7b0ae8d86e
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ if (!defined('SECURITY')) die('Hacking attempt');
if (!$user->isAuthenticated()) header("Location: index.php?page=home");
// Grab the last blocks found
$iLimit = 30;
$iLimit = 20;
$aBlocksFoundData = $statistics->getBlocksFound($iLimit);
$aBlockData = $aBlocksFoundData[0];

View File

@ -3,7 +3,7 @@
<caption>Block Shares</caption>
<thead>
<tr>
{section block $BLOCKSFOUND step=-1 max=20}
{section block $BLOCKSFOUND step=-1}
<th scope="col">{$BLOCKSFOUND[block].height}</th>
{/section}
</th>
@ -11,13 +11,13 @@
<tbody>
<tr>
<th scope="row">Expected</th>
{section block $BLOCKSFOUND step=-1 max=20}
{section block $BLOCKSFOUND step=-1}
<td>{round(pow(2,32 - $GLOBAL.config.targetdiff) * $BLOCKSFOUND[block].difficulty)}</td>
{/section}
</tr>
<tr>
<th scope="row">Actual</th>
{section block $BLOCKSFOUND step=-1 max=20}
{section block $BLOCKSFOUND step=-1}
<td>{$BLOCKSFOUND[block].shares}</td>
{/section}
</tr>