From d6f6c7aad904e650e6c7371dbd4776f6f0be2388 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Nov 2026 14:29:42 +0100 Subject: indirect probes --- src/simtest/bench.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/simtest') diff --git a/src/simtest/bench.rs b/src/simtest/bench.rs index 493936f..ac44685 100644 --- a/src/simtest/bench.rs +++ b/src/simtest/bench.rs @@ -422,7 +422,7 @@ impl Totals { } /// The kinds, in the order of the report. -const KINDS: [&str; 9] = [ +const KINDS: [&str; 10] = [ "SYNC", "STATUS", "STATUS_REPLY", @@ -432,9 +432,10 @@ const KINDS: [&str; 9] = [ "PING/PONG", "WHO/ME", "LINKS", + "PROBE", ]; -fn counters(by: &ByKind) -> [Counter; 9] { +fn counters(by: &ByKind) -> [Counter; 10] { [ by.sync, by.status, @@ -445,10 +446,11 @@ fn counters(by: &ByKind) -> [Counter; 9] { by.paths, by.identity, by.links, + by.probe, ] } -fn counters_mut(by: &mut ByKind) -> [&mut Counter; 9] { +fn counters_mut(by: &mut ByKind) -> [&mut Counter; 10] { [ &mut by.sync, &mut by.status, @@ -459,6 +461,7 @@ fn counters_mut(by: &mut ByKind) -> [&mut Counter; 9] { &mut by.paths, &mut by.identity, &mut by.links, + &mut by.probe, ] } -- cgit v1.3.1