summaryrefslogtreecommitdiffstats
path: root/src/api/peers.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 03:43:37 +0100
committertv <tv@krebsco.de>2026-10-28 03:43:37 +0100
commitff6d98bdd5f921942eb2b37d313d3b9d18acee40 (patch)
treeef98a1542aee821006ece373c1ece536cc0e9596 /src/api/peers.rs
parent5184885fcec433d636060e5a4e889fa78827dadc (diff)
get swarm RTT from paths
Diffstat (limited to 'src/api/peers.rs')
-rw-r--r--src/api/peers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs
index f2281c2..a653f7d 100644
--- a/src/api/peers.rs
+++ b/src/api/peers.rs
@@ -69,8 +69,8 @@ pub(crate) struct PeerStatus {
heads: Option<usize>,
/// We keep it alive and sync with it on our own; other peers we only answer.
neighbour: bool,
- /// Effective round-trip time in milliseconds (smoothed, raised by a HELLO still
- /// unanswered); absent without a recent sample.
+ /// Round-trip time in milliseconds of the path messages to it go over (`swarm::rtt`);
+ /// absent without a recent value.
rtt_ms: Option<f64>,
/// Messages and payload bytes exchanged with it, by kind, since we started (or
/// since it was last listed).