From e9b00dd675f287bc902fe6180fd042cda747365a Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 13 Aug 2015 12:55:16 +1000 Subject: [PATCH] php - blocks: add a counter N matching the stats table --- pool/page_blocks.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index ebd76756..70fa163e 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -173,11 +173,13 @@ function doblocks($data, $user) $pg .= "Diff"; $pg .= "Diff%"; $pg .= "CDF"; + $pg .= "N"; $pg .= "\n"; } $blktot = 0; $nettot = 0; $i = 0; + $cnt = 1; $orph = false; $csv = "Sequence,Height,Status,Timestamp,DiffAcc,NetDiff,Hash\n"; if ($ans['STATUS'] == 'ok') @@ -203,6 +205,7 @@ function doblocks($data, $user) $ex = 's'; $orph = true; $seq = ''; + $nn = $cnt; if ($conf == 'R') { addTips(); @@ -225,7 +228,10 @@ function doblocks($data, $user) } } else + { $seq = $ans['seq:'.$i]; + $nn = $cnt++; + } if ($conf == '1') { if (isset($data['info']['lastheight'])) @@ -291,6 +297,7 @@ function doblocks($data, $user) $pg .= "$stara$approx$acc"; $pg .= "$bpct"; $pg .= "$cdfdsp"; + $pg .= "$nn"; $pg .= "\n"; } else