diff options
| author | ache <ache@ache.one> | 2026-08-05 10:42:53 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2026-08-05 10:42:53 +0200 |
| commit | afe403f273997dd309af82d5f6df4a765ea29e1b (patch) | |
| tree | 778630158b364d4ceaa038fbb48d79bfc92410ff /src/main.rs | |
| parent | Fix line ends (diff) | |
Remove TTL reply
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index d5e1588..a5996d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,9 +74,9 @@ async fn main() { match rx.try_recv() { // Update the state of the received packet Ok(result) => match result { - PingResult::Ping { rtt, ttl, id } => { + PingResult::Ping { rtt, id } => { if (id as usize) < states.len() { - states[id as usize] = State::Received { rtt, ttl }; + states[id as usize] = State::Received { rtt }; } } PingResult::NoPingErr { id } => { |