Skip to content

Commit

Permalink
Fix percent complete log value
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Sep 9, 2024
1 parent 6758331 commit d3bbbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sidecar/blockIndexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func (s *Sidecar) IndexFromCurrentToTip(ctx context.Context) error {
return nil
}
tip := ct.Get()
pctComplete := float64(i) / float64(tip) * 100
blocksRemaining := tip - uint64(i)
pctComplete := (float64(blocksProcessed) / float64(blocksRemaining)) * 100
estTimeRemainingMs := runningAvg * int(blocksRemaining)
estTimeRemainingHours := float64(estTimeRemainingMs) / 1000 / 60 / 60

Expand Down

0 comments on commit d3bbbae

Please sign in to comment.