Browse Source

php - blocks N counter should be pre-incremented

master
kanoi 9 years ago
parent
commit
9af902f8b7
  1. 4
      pool/page_blocks.php

4
pool/page_blocks.php

@ -179,7 +179,7 @@ function doblocks($data, $user)
$blktot = 0; $blktot = 0;
$nettot = 0; $nettot = 0;
$i = 0; $i = 0;
$cnt = 1; $cnt = 0;
$orph = false; $orph = false;
$csv = "Sequence,Height,Status,Timestamp,DiffAcc,NetDiff,Hash\n"; $csv = "Sequence,Height,Status,Timestamp,DiffAcc,NetDiff,Hash\n";
if ($ans['STATUS'] == 'ok') if ($ans['STATUS'] == 'ok')
@ -230,7 +230,7 @@ function doblocks($data, $user)
else else
{ {
$seq = $ans['seq:'.$i]; $seq = $ans['seq:'.$i];
$nn = $cnt++; $nn = ++$cnt;
} }
if ($conf == '1') if ($conf == '1')
{ {

Loading…
Cancel
Save