diff options
| author | tv <tv@krebsco.de> | 2026-10-28 03:13:35 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 03:13:35 +0100 |
| commit | 614e57396d11700721660d54f3d90a4f01cfae7d (patch) | |
| tree | 326225c5b373619e42f4c7a46392f4839bd854b6 /src/api | |
| parent | becffeb2c78b0e2e17eabf5060de2f2056710ff1 (diff) | |
don't sample lost PONGs
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/peers.rs | 2 | ||||
| -rw-r--r-- | src/api/stats/prometheus.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs index ac73296..f2281c2 100644 --- a/src/api/peers.rs +++ b/src/api/peers.rs @@ -69,7 +69,7 @@ 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 requests still + /// Effective round-trip time in milliseconds (smoothed, raised by a HELLO still /// unanswered); absent without a recent sample. rtt_ms: Option<f64>, /// Messages and payload bytes exchanged with it, by kind, since we started (or diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index 9a4f162..911228c 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 unanswered requests).", + "Effective round-trip time (smoothed, raised by an unanswered HELLO).", ); for peer in &peers { if let Some(rtt) = peer.rtt_secs { |
