Browse Source

Merge branch 'master' of bitbucket.org:ckolivas/ckpool

master
Con Kolivas 10 years ago
parent
commit
d4d22949d8
  1. 16
      pool/page_blocks.php

16
pool/page_blocks.php

@ -69,12 +69,23 @@ function doblocks($data, $user)
else else
$row = 'odd'; $row = 'odd';
$hi = $ans['height:'.$i];
$hifld = "$blink$hi>$hi</a>";
$ex = ''; $ex = '';
$stat = $ans['status:'.$i]; $stat = $ans['status:'.$i];
if ($stat == 'Orphan') if ($stat == 'Orphan')
$ex = 's'; $ex = 's';
if ($stat == '1-Confirm') if ($stat == '1-Confirm')
$stat = 'Conf'; {
if (isset($data['info']['lastheight']))
{
$conf = 1 + $data['info']['lastheight'] - $hi;
$stat = '+'.$conf.' Confirms';
}
else
$stat = 'Conf';
}
$stara = ''; $stara = '';
$starp = ''; $starp = '';
@ -86,9 +97,6 @@ function doblocks($data, $user)
$starp = '<span class=st0>*</span>'; $starp = '<span class=st0>*</span>';
} }
$hi = $ans['height:'.$i];
$hifld = "$blink$hi>$hi</a>";
$diffacc = $ans['diffacc:'.$i]; $diffacc = $ans['diffacc:'.$i];
$acc = number_format($diffacc, 0); $acc = number_format($diffacc, 0);

Loading…
Cancel
Save