mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
fix: convert system time to u64 for Time::from_nanos in PTP module
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
parent
59c61a8976
commit
626d282022
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ async fn run_ptp_session(
|
||||||
let receive_time = Time::from_nanos(std::time::SystemTime::now()
|
let receive_time = Time::from_nanos(std::time::SystemTime::now()
|
||||||
.duration_since(std::time::UNIX_EPOCH)
|
.duration_since(std::time::UNIX_EPOCH)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.as_nanos() as i64);
|
.as_nanos() as u64);
|
||||||
actions.extend(running_port.handle_event_receive(&event_buf[..len], receive_time));
|
actions.extend(running_port.handle_event_receive(&event_buf[..len], receive_time));
|
||||||
}
|
}
|
||||||
Ok((len, _source_address)) = general_socket.recv_from(&mut general_buf) => {
|
Ok((len, _source_address)) = general_socket.recv_from(&mut general_buf) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue