This commit is contained in:
2025-05-03 23:12:15 -07:00
parent d7c57cf23a
commit cef472d2c5
4 changed files with 17 additions and 43 deletions

View File

@@ -42,16 +42,8 @@ impl ChimemonTarget for ChronySockServer {
{
let frame = ChronyTimeReport {
tv: timeval {
tv_sec: tr
.system_time
.timestamp()
.try_into()
.unwrap_or_default(),
tv_usec: tr
.system_time
.timestamp()
.try_into()
.unwrap_or_default(),
tv_sec: tr.system_time.timestamp(),
tv_usec: tr.system_time.timestamp(),
},
offset: tr.offset.num_nanoseconds().unwrap() as f64 / 1e9,
leap: if tr.leap_flag { 1 } else { 0 },