From 8f51faf963277ea79bf66d10dd4d49ed65e67e1c Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 28 Oct 2013 13:16:17 +0100 Subject: [PATCH] [IMPROVED] Adding pools specific PPS rate * Show Diff1 Baseline PPS Rate * Use pools set minimum difficulty to display pool based rate --- public/include/smarty_globals.inc.php | 1 + public/templates/mpos/dashboard/system_stats.tpl | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index 3fb1faf5..5f2c691e 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -142,6 +142,7 @@ if (@$_SESSION['USERDATA']['id']) { $aGlobal['userdata']['pps']['unpaidshares'] = $statistics->getUserUnpaidPPSShares($_SESSION['USERDATA']['id'], $setting->getValue('pps_last_share_id')); $aGlobal['ppsvalue'] = number_format(round($pps_reward / (pow(2, $config['target_bits']) * $dDifficulty), 12) ,12); + $aGlobal['poolppsvalue'] = $aGlobal['ppsvalue'] * pow(2, $config['difficulty'] - 16); $aGlobal['userdata']['sharedifficulty'] = $statistics->getUserShareDifficulty($_SESSION['USERDATA']['id']); $aGlobal['userdata']['estimates'] = $statistics->getUserEstimates($aGlobal['userdata']['sharerate'], $aGlobal['userdata']['sharedifficulty'], $aGlobal['userdata']['donate_percent'], $aGlobal['userdata']['no_fees'], $aGlobal['ppsvalue']); break; diff --git a/public/templates/mpos/dashboard/system_stats.tpl b/public/templates/mpos/dashboard/system_stats.tpl index 300483ba..46b12f12 100644 --- a/public/templates/mpos/dashboard/system_stats.tpl +++ b/public/templates/mpos/dashboard/system_stats.tpl @@ -14,8 +14,12 @@ {$GLOBAL.userdata.pps.unpaidshares} - PPS Value - {$GLOBAL.ppsvalue} + Baseline PPS Rate + {$GLOBAL.ppsvalue} {$GLOBAL.config.currency} + + + Pools PPS Rate + {$GLOBAL.poolppsvalue} {$GLOBAL.config.currency} PPS Difficulty