Skip to content

Commit f81523e

Browse files
committed
Upgrade statime to the latest version of the os layer libraries.
1 parent bfaafcf commit f81523e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ fixed = "1.24"
4646
libm = "0.2.8"
4747
atomic_refcell = "0.1.13"
4848

49-
clock-steering = "0.1.0"
50-
timestamped-socket = "0.1.0"
49+
clock-steering = "0.2.0"
50+
timestamped-socket = "0.2.0"
5151

5252

5353
# our own crates used as dependencies, same version as the workspace version

statime-linux/src/clock/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl LinuxClock {
3838
// CLOCK_REALTIME timescale which is UTC, not TAI, so we need to correct
3939
// here.
4040
self.clock.system_offset().map(|(mut t1, t2, mut t3)| {
41+
use clock_steering::Clock;
4142
let tai_offset = UnixClock::CLOCK_REALTIME.get_tai().unwrap();
4243
t1.seconds += tai_offset as libc::time_t;
4344
t3.seconds += tai_offset as libc::time_t;
@@ -50,6 +51,7 @@ impl LinuxClock {
5051
}
5152

5253
pub fn get_tai_offset(&self) -> Result<i32, clock_steering::unix::Error> {
54+
use clock_steering::Clock;
5355
if self.is_tai {
5456
UnixClock::CLOCK_REALTIME.get_tai()
5557
} else {

0 commit comments

Comments
 (0)