Correct metrics from ns to ms (#13540)

This commit is contained in:
terence 2024-01-26 09:43:30 -08:00 committed by GitHub
parent 1b70d2b566
commit 3a9854145c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,8 +227,8 @@ func (s *Service) validateBeaconBlockPubSub(ctx context.Context, pid peer.ID, ms
logFields["validationTime"] = validationTime
log.WithFields(logFields).Debug("Received block")
blockArrivalGossipSummary.Observe(float64(sinceSlotStartTime))
blockVerificationGossipSummary.Observe(float64(validationTime))
blockArrivalGossipSummary.Observe(float64(sinceSlotStartTime.Milliseconds()))
blockVerificationGossipSummary.Observe(float64(validationTime.Milliseconds()))
return pubsub.ValidationAccept, nil
}