Skip to content

Commit

Permalink
chore(batcher): opt auto swtich metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoieh committed Jun 17, 2024
1 parent f61d62e commit 2400897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-batcher/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ func (m *Metrics) RecordAutoSwitchTimeDuration(duration time.Duration) {
}

func (m *Metrics) RecordEstimatedCalldataTypeFee(fee *big.Int) {
m.estimatedCalldataTypeFee.Set(float64(fee.Uint64() / params.GWei))
m.estimatedCalldataTypeFee.Set(float64(fee.Uint64()) / params.GWei)
}

func (m *Metrics) RecordEstimatedBlobTypeFee(fee *big.Int) {
m.estimatedBlobTypeFee.Set(float64(fee.Uint64() / params.GWei))
m.estimatedBlobTypeFee.Set(float64(fee.Uint64()) / params.GWei)
}

// estimateBatchSize estimates the size of the batch
Expand Down

0 comments on commit 2400897

Please sign in to comment.