From 626d2820225a8140679eed5a1ff9d08b52c23928 Mon Sep 17 00:00:00 2001 From: John Rogers Date: Thu, 10 Jul 2025 18:08:56 +0100 Subject: [PATCH] fix: convert system time to u64 for Time::from_nanos in PTP module Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) --- src/ptp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ptp.rs b/src/ptp.rs index 065799c..a81f76c 100644 --- a/src/ptp.rs +++ b/src/ptp.rs @@ -172,7 +172,7 @@ async fn run_ptp_session( let receive_time = Time::from_nanos(std::time::SystemTime::now() .duration_since(std::time::UNIX_EPOCH) .unwrap() - .as_nanos() as i64); + .as_nanos() as u64); actions.extend(running_port.handle_event_receive(&event_buf[..len], receive_time)); } Ok((len, _source_address)) = general_socket.recv_from(&mut general_buf) => {