From f42b4d81caac06768b1f673a689e02b2ccbd3bad Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 22 May 2013 15:45:32 +0200 Subject: [PATCH] adding user to top stats to always display even if not part of results --- .../mmcFE/statistics/pool/contributors_hashrate.tpl | 13 +++++++++++-- .../mmcFE/statistics/pool/contributors_shares.tpl | 10 +++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl b/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl index f9f9c27f..92f92a05 100644 --- a/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl +++ b/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl @@ -11,14 +11,23 @@ {assign var=rank value=1} +{assign var=listed value=0} {section contrib $CONTRIBHASHES} - + {$rank++} {$CONTRIBHASHES[contrib].account} {$CONTRIBHASHES[contrib].hashrate|number_format} - {math equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24),3)" diff=$DIFFICULTY reward=$REWARD hashrate=$CONTRIBHASHES[contrib].hashrate} + {math equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24) * (0.2 / 100) ,3)" diff=$DIFFICULTY reward=$REWARD hashrate=$CONTRIBHASHES[contrib].hashrate} {/section} +{if $listed != 1} + + n/a + {$GLOBAL.userdata.username} + {$GLOBAL.userdata.hashrate} + {math equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24) * (0.2 / 100) ,3)" diff=$DIFFICULTY reward=$REWARD hashrate=$GLOBAL.userdata.hashrate} + +{/if} diff --git a/public/templates/mmcFE/statistics/pool/contributors_shares.tpl b/public/templates/mmcFE/statistics/pool/contributors_shares.tpl index 1214ef44..8fbd590a 100644 --- a/public/templates/mmcFE/statistics/pool/contributors_shares.tpl +++ b/public/templates/mmcFE/statistics/pool/contributors_shares.tpl @@ -10,13 +10,21 @@ {assign var=rank value=1} +{assign var=listed value=0} {section hashrate $CONTRIBSHARES} - + {$rank++} {$CONTRIBSHARES[hashrate].account} {$CONTRIBSHARES[hashrate].shares|number_format} {/section} +{if $listed != 1} + + n/a + {$GLOBAL.userdata.username} + {$GLOBAL.userdata.shares.valid} + +{/if}