From 94373af89d7f3a89a433470b0ef4c48f1c9994c3 Mon Sep 17 00:00:00 2001 From: oxBoni Date: Thu, 27 Nov 2025 20:56:58 +0100 Subject: [PATCH] Update history_indexer.go --- triedb/pathdb/history_indexer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/triedb/pathdb/history_indexer.go b/triedb/pathdb/history_indexer.go index 893ccd6523..d40a25cf1c 100644 --- a/triedb/pathdb/history_indexer.go +++ b/triedb/pathdb/history_indexer.go @@ -608,8 +608,9 @@ func (i *indexIniter) index(done chan struct{}, interrupt *atomic.Int32, lastID left = lastID - current + 1 done = current - beginID ) - eta := common.CalculateETA(done, left, time.Since(start)) - i.log.Info("Indexing history", "processed", done, "left", left, "elapsed", common.PrettyDuration(time.Since(start)), "eta", common.PrettyDuration(eta)) + elapsed := time.Since(start) + eta := common.CalculateETA(done, left, elapsed) + i.log.Info("Indexing history", "processed", done, "left", left, "elapsed", common.PrettyDuration(elapsed), "eta", common.PrettyDuration(eta)) } } i.indexed.Store(current - 1) // update indexing progress