diff --git a/pool/page_workers.php b/pool/page_workers.php
index d87ea691..c0f638c2 100644
--- a/pool/page_workers.php
+++ b/pool/page_workers.php
@@ -10,7 +10,7 @@ function worktitle($data, $user)
$pg .= "
<$r id=srtlst data-sf=n2>:Last Share | ";
$pg .= 'Shares | ';
$pg .= "<$r id=srtdiff data-sf=r4>:Diff | ";
- $pg .= 'Invalid | ';
+ $pg .= "<$r id=srtinv data-sf=r5>:Invalid | ";
$pg .= 'Block % | ';
$pg .= "<$r id=srtrate data-sf=r7>:Hash Rate | ";
$pg .= "\n";
@@ -92,25 +92,33 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff,
$shareacc = number_format($all[$i]['w_shareacc'], 0);
$totshare += $all[$i]['w_shareacc'];
- $diffacc = number_format($all[$i]['w_diffacc'], 0);
- $ds = round($all[$i]['w_diffacc']);
- $totdiff += $all[$i]['w_diffacc'];
+ $dacc = $all[$i]['w_diffacc'];
+ $diffacc = number_format($dacc, 0);
+ $ds = round($dacc);
+ $totdiff += $dacc;
$pg .= "$shareacc | ";
$pg .= "$diffacc | ";
- $dtot = $all[$i]['w_diffacc'] + $all[$i]['w_diffinv'];
+ $dinv = $all[$i]['w_diffinv'];
+ $dtot = $dacc + $dinv;
if ($dtot > 0)
- $rej = number_format(100.0 * $all[$i]['w_diffinv'] / $dtot, 3);
+ {
+ $rejf = $dinv / $dtot;
+ $rej = number_format(100.0 * $rejf, 3);
+ }
else
+ {
+ $rejf = 0;
$rej = '0';
- $totinvalid += $all[$i]['w_diffinv'];
+ }
+ $totinvalid += $dinv;
- $pg .= "$rej% | ";
+ $pg .= "$rej% | ";
if ($blockacc <= 0)
$blkpct = ' ';
else
- $blkpct = number_format(100.0 * $all[$i]['w_diffacc'] / $blockacc, 3) . '%';
+ $blkpct = number_format(100.0 * $dacc / $blockacc, 3) . '%';
$pg .= "$blkpct | ";