From 30c2ca8537fbc2874ec6e14cdd1ae5477c95f099 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 03:17:29 +0100 Subject: measure RTT on single link paths, too --- src/transport/stats.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/transport/stats.rs') diff --git a/src/transport/stats.rs b/src/transport/stats.rs index 6b1a42f..12b2c99 100644 --- a/src/transport/stats.rs +++ b/src/transport/stats.rs @@ -36,7 +36,8 @@ impl TransportStats { #[derive(Debug, Clone, Default, Serialize)] #[serde(rename_all = "camelCase")] pub(crate) struct PathsStats { - /// Every path measured: those of peers this node chose among lately. + /// Every path measured: those of peers this node chose among lately, and those its + /// keepalives went over. pub(crate) paths: Vec, #[serde(flatten)] pub(crate) counts: PathCounts, @@ -48,7 +49,8 @@ pub(crate) struct PathsStats { pub(crate) struct PathInfo { /// `:`. pub(crate) address: String, - /// Smoothed round-trip time of its PINGs; absent before an answer. + /// Smoothed round-trip time of its PINGs (ours, and our keepalives); absent before + /// an answer. pub(crate) rtt_ms: Option, /// Its PINGs went unanswered three times in a row, or a send there failed within a /// minute: used only when no other path works. -- cgit v1.3.1