Skip to content

Commit

Permalink
Fix issue with onchain metrics collection interval
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc committed Apr 20, 2024
1 parent 5635f6c commit 525ab7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (g *Metrics) AcceptBatches(status string, batchSize uint64) {
}

func (g *Metrics) collectOnchainMetrics() {
ticker := time.NewTicker(time.Duration(uint64(g.onchainMetricsInterval)))
ticker := time.NewTicker(time.Duration(uint64(g.onchainMetricsInterval) * uint64(time.Second)))
defer ticker.Stop()

// 3 chain RPC calls in each cycle.
Expand Down

0 comments on commit 525ab7d

Please sign in to comment.