* Properly sort the array prior to sending it back * Sort from current to one hour earlier for proper data display * Adjusted templates to use new sorted arrays Fixes #606
24 lines
568 B
Smarty
24 lines
568 B
Smarty
{if is_array($POOLHASHRATES)}
|
|
<div class="block_content tab_content" id="pool" style="padding-left:30px;">
|
|
<table width="60%" class="stats" rel="area">
|
|
<caption>Pool Hashrate</caption>
|
|
<thead>
|
|
<tr>
|
|
<td></td>
|
|
{foreach $POOLHASHRATES as $hour=>$hashrate}
|
|
<th scope="col">{$hour|default:"0"}:00</th>
|
|
{/foreach}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">Pool</th>
|
|
{foreach $POOLHASHRATES as $hour=>$hashrate}
|
|
<td>{$hashrate|default:"0"}</td>
|
|
{/foreach}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{/if}
|