mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
timesync: changes type of drift_freq to int64_t
drift_freq is used for storing timex.freq, and is a 64bit integer. To support x32 ABI, this changes the type of drift_freq to int64_t. Fixes #9387.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
e05c8b4462
commit
75ca1621db
@@ -604,7 +604,7 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
|
||||
m->dest_time = *recv_time;
|
||||
m->spike = spike;
|
||||
|
||||
log_debug("interval/delta/delay/jitter/drift " USEC_FMT "s/%+.3fs/%.3fs/%.3fs/%+"PRI_TIMEX"ppm%s",
|
||||
log_debug("interval/delta/delay/jitter/drift " USEC_FMT "s/%+.3fs/%.3fs/%.3fs/%+"PRIi64"ppm%s",
|
||||
m->poll_interval_usec / USEC_PER_SEC, offset, delay, m->samples_jitter, m->drift_freq / 65536,
|
||||
spike ? " (ignored)" : "");
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ struct Manager {
|
||||
/* last change */
|
||||
bool jumped;
|
||||
bool sync;
|
||||
long drift_freq;
|
||||
int64_t drift_freq;
|
||||
|
||||
/* watch for time changes */
|
||||
sd_event_source *event_clock_watch;
|
||||
|
||||
Reference in New Issue
Block a user