Skip to content

Commit

Permalink
Correct the histrogram bucket sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Dec 13, 2023
1 parent a70bef0 commit be2531f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocols/gossipsub/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit be2531f

Please sign in to comment.