From be2531ffbe56319837d48d0123478e9a95db7c7f Mon Sep 17 00:00:00 2001 From: Age Manning Date: Wed, 13 Dec 2023 19:05:54 +1100 Subject: [PATCH] Correct the histrogram bucket sizes --- protocols/gossipsub/src/metrics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/gossipsub/src/metrics.rs b/protocols/gossipsub/src/metrics.rs index a3679a044ea..884bbbbe59d 100644 --- a/protocols/gossipsub/src/metrics.rs +++ b/protocols/gossipsub/src/metrics.rs @@ -321,14 +321,14 @@ impl Metrics { metric }; - let priority_queue_size = Histogram::new(linear_buckets(0.0, 2500.0, 100)); + let priority_queue_size = Histogram::new(linear_buckets(0.0, 25.0, 100)); registry.register( "priority_queue_size", "Histogram of observed priority queue sizes", priority_queue_size.clone(), ); - let non_priority_queue_size = Histogram::new(linear_buckets(0.0, 2500.0, 100)); + let non_priority_queue_size = Histogram::new(linear_buckets(0.0, 25.0, 100)); registry.register( "non_priority_queue_size", "Histogram of observed non-priority queue sizes",