diff --git a/Cargo.lock b/Cargo.lock index 580ea0576..94d626068 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -175,9 +175,9 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "clock-steering" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80ac48dbcd3a6fa19104a04f468da9680dac59f7456159511490d438a501e9e1" +checksum = "e8078994a6ef3fefa4c9cc2e69af9ee94cac7804e4ec065d794cd36728c12c02" dependencies = [ "libc", ] @@ -570,9 +570,9 @@ dependencies = [ [[package]] name = "timestamped-socket" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caaff75f66683c9953194a55b9ed214d93cb4c99ab333623dff91e2bae7860c6" +checksum = "c5caba8d0c821442603f7e148c7cfc34e916a8c7f66ac3ce56d8a7bf928acbd4" dependencies = [ "libc", "serde", diff --git a/Cargo.toml b/Cargo.toml index b1b661ab5..dd814f00d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,8 +46,8 @@ fixed = "1.24" libm = "0.2.8" atomic_refcell = "0.1.13" -clock-steering = "0.1.0" -timestamped-socket = "0.1.0" +clock-steering = "0.2.0" +timestamped-socket = "0.2.0" # our own crates used as dependencies, same version as the workspace version diff --git a/statime-linux/src/clock/mod.rs b/statime-linux/src/clock/mod.rs index 3c6e1580d..19e7fa235 100644 --- a/statime-linux/src/clock/mod.rs +++ b/statime-linux/src/clock/mod.rs @@ -38,6 +38,7 @@ impl LinuxClock { // CLOCK_REALTIME timescale which is UTC, not TAI, so we need to correct // here. self.clock.system_offset().map(|(mut t1, t2, mut t3)| { + use clock_steering::Clock; let tai_offset = UnixClock::CLOCK_REALTIME.get_tai().unwrap(); t1.seconds += tai_offset as libc::time_t; t3.seconds += tai_offset as libc::time_t; @@ -50,6 +51,7 @@ impl LinuxClock { } pub fn get_tai_offset(&self) -> Result { + use clock_steering::Clock; if self.is_tai { UnixClock::CLOCK_REALTIME.get_tai() } else {