Skip to content

Commit

Permalink
metrics: add simulation counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolly23 committed Jun 25, 2024
1 parent 3a07ca1 commit 507d745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/bid_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ func (b *bidSimulator) simBid(interruptCh chan int32, bidRuntime *BidRuntime) {
if success {
bidRuntime.duration = time.Since(simStart)
bidSimTimer.UpdateSince(simStart)
metrics.GetOrRegisterCounter(fmt.Sprintf("bid/sim/count/%d", bidRuntime.bid.BlockNumber), nil).Inc(1)

// only recommit self bid when newBidCh is empty
if len(b.newBidCh) > 0 {
Expand Down

0 comments on commit 507d745

Please sign in to comment.