aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
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 } => {