From 89461a37f285648c0f66e3bfaead5c2c816d3922 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 2 Mar 2015 11:04:14 +1100 Subject: [PATCH] php - adjust mining payouts display --- pool/page_mpayouts.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pool/page_mpayouts.php b/pool/page_mpayouts.php index 16dfcc54..37acff4f 100644 --- a/pool/page_mpayouts.php +++ b/pool/page_mpayouts.php @@ -10,11 +10,12 @@ function dompayouts($data, $user) $pg .= ""; $pg .= "Block"; $pg .= "Miner Reward"; - $pg .= "Payout Diff"; - $pg .= "Elapsed"; + $pg .= "N Diff"; + $pg .= "N Range"; + $pg .= "Pool N Avg"; $pg .= "Your %"; - $pg .= "Your Diff"; - $pg .= "Your Avg Hs"; + $pg .= "Your N Diff"; + $pg .= "Your N Avg"; $pg .= "Your BTC"; $pg .= "\n"; if ($ans['STATUS'] == 'ok') @@ -34,6 +35,8 @@ function dompayouts($data, $user) $pg .= ''.difffmt($diffused).''; $elapsed = $ans['elapsed:'.$i]; $pg .= ''.howmanyhrs($elapsed).''; + $phr = $diffused * pow(2,32) / $elapsed; + $pg .= ''.siprefmt($phr).'Hs'; $diffacc = $ans['diffacc:'.$i]; $ypct = $diffacc * 100 / $diffused; $pg .= ''.number_format($ypct, 2).'%';