diff options
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/peers.rs | 4 | ||||
| -rw-r--r-- | src/api/stats/prometheus.rs | 2 |
2 files changed, 3 insertions, 3 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). diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index 911228c..559a23e 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -808,7 +808,7 @@ pub(super) async fn render(state: &AppState, stats: &StatsResponse) -> String { out.family( "peer_rtt_seconds", "gauge", - "Effective round-trip time (smoothed, raised by an unanswered HELLO).", + "Round-trip time of the path messages to the peer go over (before that, of HELLOs).", ); for peer in &peers { if let Some(rtt) = peer.rtt_secs { |
