From 277701a87fb96ca9db8de97f05bdd3dbfb85b66c Mon Sep 17 00:00:00 2001 From: John Rogers Date: Thu, 10 Jul 2025 17:42:47 +0100 Subject: [PATCH] fix: Update statime-linux imports and clock usage Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) --- src/ptp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ptp.rs b/src/ptp.rs index 18d35bf..bb236dc 100644 --- a/src/ptp.rs +++ b/src/ptp.rs @@ -11,7 +11,7 @@ use statime::{ time::{Duration as PtpDuration, Interval}, OverlayClock, PtpInstance, SharedClock, }; -use statime_linux::{clock::SystemClock, net::udp::LinuxUdpHandles}; +use statime_linux::{clock::LinuxClock, socket::udp::LinuxUdpHandles}; use std::sync::{Arc, Mutex}; use std::time::Duration; use tokio::time::{sleep, Instant}; @@ -94,7 +94,7 @@ async fn run_ptp_session( }; // 4. Create Clock and Filter - let clock = SharedClock::new(OverlayClock::new(SystemClock::new())); + let clock = SharedClock::new(OverlayClock::new(LinuxClock::new())); let filter_config = 0.1; // Filter coefficient // 5. Create network handles