diff --git a/internal/consensus/metrics.go b/internal/consensus/metrics.go index 7c69c5d5e..51f59cb8e 100644 --- a/internal/consensus/metrics.go +++ b/internal/consensus/metrics.go @@ -410,8 +410,8 @@ func (m *Metrics) MarkVoteExtensionReceived(appValid bool) { m.VoteExtensionReceiveCount.With("status", status).Add(1) } -func (m *Metrics) MarkVoteReceived(vt tmproto.SignedMsgType, vp, tvp int64) { - p := float64(vp) / float64(tvp) +func (m *Metrics) MarkVoteReceived(vt tmproto.SignedMsgType, power, totalPower int64) { + p := float64(power) / float64(totalPower) n := strings.ToLower(strings.TrimPrefix(vt.String(), "SIGNED_MSG_TYPE_")) m.RoundVotingPowerPercent.With("vote_type", n).Add(p) }