\n";
$pg .= "function wkdet(n,i){var t=document.getElementById(n);if(i&&t){var b,cs,j,c,a;b=i.checked;cs=t.getElementsByTagName('td');for(j=0;c=cs[j];j++)
{a=c.getAttribute('data-hid');if(a){if(b){c.className=a}else{c.className='hid'}}}}}";
$pg .= "\n";
$pg .= "Show Details for Invalids:
";
$pg .= "
Worker Name:<$r id=srtwrk data-sf=s0> | "; $pg .= 'Work Diff | '; $pg .= "<$r id=srtlst data-sf=n2>:Last Share | "; $pg .= 'Shares | '; $pg .= "<$r id=srtdiff data-sf=r4>:Diff | "; $pg .= "<$r id=srtshrate data-sf=r5>:Share Rate | "; $pg .= '«Elapsed | '; $pg .= "<$r id=srtinv data-sf=r7>:Invalid | "; $pg .= "<$r id=srtstale data-sf=r8>:Stale | "; $pg .= "<$r id=srtdup data-sf=r9>:Dup | "; $pg .= "<$r id=srthi data-sf=r10>:Hi | "; $pg .= "<$r id=srtreject data-sf=r11>:Rej | "; $pg .= 'Block % | '; $pg .= "<$r id=srtrate data-sf=r13>:Hash Rate | "; $pg .= "
'.htmlspecialchars($arow['workername']).' | '; if ($arow['w_lastdiff'] > 0) $ld = difffmt($arow['w_lastdiff']); else $ld = ' '; $pg .= "$ld | "; $pg .= "".howlongago($lstacc).' | '; $shareacc = number_format($arow['w_shareacc'], 0); $totshare += $arow['w_shareacc']; $dacc = $arow['w_diffacc']; $diffacc = number_format($dacc, 0); $ds = round($dacc); $totdiff += $dacc; $pg .= "$shareacc | "; $pg .= "$diffacc | "; $acthr = '0'; $acthrv = 0; $actstt = $arow['w_active_start']; if ($actstt <= 0 || ($now - $actstt) < 0) $actsin = ' '; else { $actsin = howmanyhrs($now - $actstt); $elapsed = $now - $actstt; if ($elapsed > 0) { $acthrv = $arow['w_active_diffacc'] * pow(2,32) / $elapsed; $acthr = dsprate($acthrv); $totshrate += $acthrv; } } $pg .= "$acthr | "; $pg .= "$actsin | "; $dinv = $arow['w_diffinv']; $dtot = $dacc + $dinv; if ($dtot > 0) { $rejf = $dinv / $dtot; $rej = number_format(100.0 * $rejf, 3); } else { $rejf = 0; $rej = '0'; } $totinvalid += $dinv; $pg .= "$rej% | "; foreach(array('sta','dup','hi','rej') as $fld) { $shr = number_format($arow['w_share'.$fld]); $dif = $arow['w_diff'.$fld]; $ddif = number_format($dif); $sdif = number_format($dif,0,'',''); $pg .= "$ddif/$shr | "; } if ($blockacc <= 0) $blkpct = ' '; else $blkpct = number_format(100.0 * $dacc / $blockacc, 3) . '%'; $pg .= "$blkpct | "; $uhr = $arow['w_uhr']; if ($uhr == '?') { $uhr = '?GHs'; $su = 0; } else { $su = round($uhr); $totrate += $uhr; $uhr = dsprate($uhr); } $pg .= "$uhr | "; $pg .= "|||
Total: $offset | "; $shareacc = number_format($totshare, 0); $pg .= " | $shareacc | "; $diffacc = number_format($totdiff, 0); $pg .= "$diffacc | "; $pg .= "$totshrate | "; $dtot = $totdiff + $totinvalid; if ($dtot > 0) $rej = number_format(100.0 * $totinvalid / $dtot, 3); else $rej = '0'; $pg .= " | $rej% | "; if ($blockacc <= 0) $blkpct = ' '; else $blkpct = number_format(100.0 * $totdiff / $blockacc, 3) . '%'; $pg .= ""; $pg .= " | $blkpct | "; $pg .= "$totrate | ||||
';
$pg .= " Payout est if block found at 100%: ~$btc BTC"; $pg .= ' |