mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +00:00
core/rawdb: fix off-by-one in freezer init progress log (#35344)
This commit is contained in:
parent
b34a925e9e
commit
13bcbf0eef
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ func InitDatabaseFromFreezer(db ethdb.Database) {
|
|||
i += uint64(len(data))
|
||||
// If we've spent too much time already, notify the user of what we're doing
|
||||
if time.Since(logged) > 8*time.Second {
|
||||
log.Info("Initializing database from freezer", "total", frozen, "number", i, "hash", hash, "elapsed", common.PrettyDuration(time.Since(start)))
|
||||
log.Info("Initializing database from freezer", "total", frozen, "number", i-1, "hash", hash, "elapsed", common.PrettyDuration(time.Since(start)))
|
||||
logged = time.Now()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue