summaryrefslogtreecommitdiffstats
path: root/src/transport/stats.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 03:17:29 +0100
committertv <tv@krebsco.de>2026-10-28 03:17:29 +0100
commit30c2ca8537fbc2874ec6e14cdd1ae5477c95f099 (patch)
treeecdb99d28bed6c5d9ed19637c1e725c9b2a532ca /src/transport/stats.rs
parent614e57396d11700721660d54f3d90a4f01cfae7d (diff)
measure RTT on single link paths, too
Diffstat (limited to 'src/transport/stats.rs')
-rw-r--r--src/transport/stats.rs6
1 files changed, 4 insertions, 2 deletions
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<PathInfo>,
#[serde(flatten)]
pub(crate) counts: PathCounts,
@@ -48,7 +49,8 @@ pub(crate) struct PathsStats {
pub(crate) struct PathInfo {
/// `<scheme>:<transport identity>`.
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<f64>,
/// Its PINGs went unanswered three times in a row, or a send there failed within a
/// minute: used only when no other path works.