diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index 8ec1e882..d7712942 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -34,6 +34,7 @@ $aGlobal = array( 'blockexplorer' => $config['blockexplorer'], 'chaininfo' => $config['chaininfo'], 'config' => array( + 'targetdiff' => $config['difficulty'], 'currency' => $config['currency'], 'txfee' => $config['txfee'], 'payout_system' => $config['payout_system'], diff --git a/public/templates/mmcFE/statistics/blocks/blocks_found.tpl b/public/templates/mmcFE/statistics/blocks/blocks_found.tpl index 2278fb3c..d66e1349 100644 --- a/public/templates/mmcFE/statistics/blocks/blocks_found.tpl +++ b/public/templates/mmcFE/statistics/blocks/blocks_found.tpl @@ -23,8 +23,8 @@ Orphan {else}{$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left{/if} {$BLOCKSFOUND[block].finder|default:"unknown"} - {$BLOCKSFOUND[block].time|date_format:"%d/%m/%Y %H:%M:%S"} - {$BLOCKSFOUND[block].difficulty|number_format:"8"} + {$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"} + {$BLOCKSFOUND[block].difficulty|number_format:"2"} {$BLOCKSFOUND[block].shares|number_format} {/section} diff --git a/public/templates/mmcFE/statistics/pool/authenticated.tpl b/public/templates/mmcFE/statistics/pool/authenticated.tpl index 5d21e3eb..bedd8d4b 100644 --- a/public/templates/mmcFE/statistics/pool/authenticated.tpl +++ b/public/templates/mmcFE/statistics/pool/authenticated.tpl @@ -33,7 +33,7 @@ Est. Avg. Shares per Round - {($ESTTIME * $GLOBAL.sharerate)|number_format:"0"} + {(pow(2, 32 - $GLOBAL.config.targetdiff) * $DIFFICULTY)|number_format:"0"} Time Since Last Block diff --git a/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl b/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl index 67c8f5d7..9086427a 100644 --- a/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl +++ b/public/templates/mmcFE/statistics/pool/contributors_hashrate.tpl @@ -7,7 +7,7 @@ User Name KH/s {$GLOBAL.config.currency}/Day - Usd/Day + USD/Day @@ -20,7 +20,7 @@ {$CONTRIBHASHES[contrib].account} {$CONTRIBHASHES[contrib].hashrate|number_format} {$estday|number_format:"3"} - {$estday|number_format:"3"*$GLOBAL.price|default:"n/a"|number_format:"4"} + {($estday * $GLOBAL.price)|default:"n/a"|number_format:"2"} {/section} {if $listed != 1} @@ -29,7 +29,7 @@ {$GLOBAL.userdata.username} {$GLOBAL.userdata.hashrate} {$estday|number_format:"3"} - {$estday|number_format:"3"*$GLOBAL.price|default:"n/a"|number_format:"4"} + {($estday * $GLOBAL.price)|default:"n/a"|number_format:"2"} {/if}