We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d81b2 commit 91c4607Copy full SHA for 91c4607
core/blockchain_insert.go
@@ -43,7 +43,7 @@ func (st *insertStats) report(chain []*types.Block, index int, dirty common.Stor
43
// Fetch the timings for the batch
44
var (
45
now = mclock.Now()
46
- elapsed = time.Duration(now) - time.Duration(st.startTime)
+ elapsed = now.Sub(st.startTime)
47
)
48
// If we're at the last block of the batch or report period reached, log
49
if index == len(chain)-1 || elapsed >= statsReportLimit {
0 commit comments