Skip to content

Commit

Permalink
fix time unit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Solovyov1796 committed Dec 26, 2024
1 parent 1cd85c6 commit 2550a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (node *Node) UpdateHeight(config AvailabilityReport) {
node.lastBlockGap = info.Timestamp - node.currentBlockInfo.Timestamp

if latest > 0 { // skip first report
metrics.GetOrRegisterHistogram(blockCollatedGapPattern, node.name).Update(int64(node.lastBlockGap))
metrics.GetOrRegisterHistogram(blockCollatedGapPattern, node.name).Update(int64(node.lastBlockGap * uint64(time.Second)))

if node.lastBlockGap > config.MaxGap {
unhealthy, unrecovered, elapsed := node.blockGapHealth.OnFailure(config.TimedCounterConfig)
Expand Down

0 comments on commit 2550a56

Please sign in to comment.