From 8e4ac73bd8ad09eba790a8d59b4c6634a4029101 Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 4 Sep 2014 18:53:41 +1000 Subject: [PATCH] php - display reject stat --- pool/page.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pool/page.php b/pool/page.php index 0f92ece8..58804772 100644 --- a/pool/page.php +++ b/pool/page.php @@ -231,7 +231,12 @@ function pgtop($dotop, $user, $douser) } if (isset($info['blockerr'])) + { + $rej = $info['blockerr']; $per = number_format($info['blockerr'], 0); + if (isset($info['blockacc']) && ($acc+$rej) > 0) + $per .= ' ('.number_format(100.0*$rej/($acc+$rej), 3).'%)'; + } if (isset($info['u_hashrate5m'])) { @@ -282,6 +287,9 @@ function pgtop($dotop, $user, $douser) $top .= '
'; $top .= 'Shares:'; $top .= "$pac"; + $top .= '
'; + $top .= 'Rejects:'; + $top .= "$per"; $top .= ''; $top .= 'Pool, Last Block:'; $top .= "$plb";