aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorache <ache@ache.one>2026-08-05 10:42:53 +0200
committerache <ache@ache.one>2026-08-05 10:42:53 +0200
commitafe403f273997dd309af82d5f6df4a765ea29e1b (patch)
tree778630158b364d4ceaa038fbb48d79bfc92410ff /src/main.rs
parentFix line ends (diff)
Remove TTL reply
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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 } => {