Only show 20 blocks for block graph

Graph dynamically expands if the blocks don't fit so it's now limited to
20 which should always fit well enough.
This commit is contained in:
Sebastian Grewe 2013-06-14 11:38:00 +02:00
parent 6f3912b6a2
commit bee35325dc

View File

@ -3,7 +3,7 @@
<caption>Block Shares</caption>
<thead>
<tr>
{section block $BLOCKSFOUND step=-1}
{section block $BLOCKSFOUND step=-1 max=20}
<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}
{section block $BLOCKSFOUND step=-1 max=20}
<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}
{section block $BLOCKSFOUND step=-1 max=20}
<td>{$BLOCKSFOUND[block].shares}</td>
{/section}
</tr>