Fix bug in calculating the last checkpointed block that is used in the stats
This commit is contained in:
@@ -45,7 +45,7 @@ while (1) {
|
|||||||
$count++;
|
$count++;
|
||||||
my $block = $start_height + $stride*$count;
|
my $block = $start_height + $stride*$count;
|
||||||
if ($block > $blocks) {
|
if ($block > $blocks) {
|
||||||
$last = $stride*($count-1);
|
$last = $start_height + $stride*($count-1);
|
||||||
#print "last checkpointed block=$last\n";
|
#print "last checkpointed block=$last\n";
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user