From 7b0ae8d86ec2787ab157783041a9e720a4d6f796 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 28 Jun 2013 20:29:51 +0200 Subject: [PATCH] reduced blocks count to fixed 20 --- public/include/pages/statistics/blocks.inc.php | 2 +- public/templates/mmcFE/statistics/blocks/default.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/include/pages/statistics/blocks.inc.php b/public/include/pages/statistics/blocks.inc.php index e83aa8a8..011f4b5c 100644 --- a/public/include/pages/statistics/blocks.inc.php +++ b/public/include/pages/statistics/blocks.inc.php @@ -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]; diff --git a/public/templates/mmcFE/statistics/blocks/default.tpl b/public/templates/mmcFE/statistics/blocks/default.tpl index 3d7afdde..2fcaa9e5 100644 --- a/public/templates/mmcFE/statistics/blocks/default.tpl +++ b/public/templates/mmcFE/statistics/blocks/default.tpl @@ -3,7 +3,7 @@ Block Shares -{section block $BLOCKSFOUND step=-1 max=20} +{section block $BLOCKSFOUND step=-1} {$BLOCKSFOUND[block].height} {/section} @@ -11,13 +11,13 @@ Expected -{section block $BLOCKSFOUND step=-1 max=20} +{section block $BLOCKSFOUND step=-1} {round(pow(2,32 - $GLOBAL.config.targetdiff) * $BLOCKSFOUND[block].difficulty)} {/section} Actual -{section block $BLOCKSFOUND step=-1 max=20} +{section block $BLOCKSFOUND step=-1} {$BLOCKSFOUND[block].shares} {/section}