From 3a9854145c1934cbbdf65aac7d328fae1f91ffd3 Mon Sep 17 00:00:00 2001 From: terence Date: Fri, 26 Jan 2024 09:43:30 -0800 Subject: [PATCH] Correct metrics from ns to ms (#13540) --- beacon-chain/sync/validate_beacon_blocks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-chain/sync/validate_beacon_blocks.go b/beacon-chain/sync/validate_beacon_blocks.go index a82b787fcda5..cb90b51077c4 100644 --- a/beacon-chain/sync/validate_beacon_blocks.go +++ b/beacon-chain/sync/validate_beacon_blocks.go @@ -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 }