mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
workers: show current stratum session shares
This commit is contained in:
parent
993cb428f5
commit
9ec0fe758f
1 changed files with 10 additions and 3 deletions
|
@ -14,8 +14,9 @@ echo "<th>Address</th>";
|
|||
echo "<th>Pass</th>";
|
||||
echo "<th>Client</th>";
|
||||
echo "<th>Version</th>";
|
||||
echo "<th>Diff</th>";
|
||||
echo "<th>Hashrate</th>";
|
||||
echo "<th>Diff</th>";
|
||||
echo "<th>Shares</th>";
|
||||
echo "<th>Bad</th>";
|
||||
echo "<th>%</th>";
|
||||
echo "<th></th>";
|
||||
|
@ -41,7 +42,7 @@ foreach($workers as $worker)
|
|||
|
||||
$name = $worker->worker;
|
||||
$user = $coin = NULL;
|
||||
$coinimg = ''; $coinlink = ''; $coinsym = '';
|
||||
$coinimg = ''; $coinlink = ''; $coinsym = ''; $shares= '';
|
||||
if ($worker->userid) {
|
||||
$user = getdbo('db_accounts', $worker->userid);
|
||||
if ($user) {
|
||||
|
@ -64,8 +65,14 @@ foreach($workers as $worker)
|
|||
echo "<td>$worker->password</td>";
|
||||
echo "<td title='$worker->ip'>$dns</td>";
|
||||
echo "<td>$worker->version</td>";
|
||||
echo "<td>$worker->difficulty</td>";
|
||||
echo "<td>$user_rate</td>";
|
||||
echo "<td>$worker->difficulty</td>";
|
||||
|
||||
$shares = dboscalar("SELECT COUNT(id) as shares FROM shares WHERE workerid=:worker AND algo=:algo", array(
|
||||
':worker'=> $worker->id,
|
||||
':algo'=> $algo
|
||||
));
|
||||
echo "<td>$shares</td>";
|
||||
|
||||
echo "<td>". ($user_bad ? Itoa2($user_bad).'h/s' : '-');
|
||||
if ($user_bad) {
|
||||
|
|
Loading…
Add table
Reference in a new issue