mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 19:35:07 -05:00
Always send timevals in cmdmon protocol in 64-bit format
This is to avoid incompatibility between 64/32-bit client/server. While at it, convert all time values in the protocol to timeval to avoid Y2K38 problem.
This commit is contained in:
@@ -1104,7 +1104,8 @@ RTC_Linux_TimePreInit(void)
|
||||
int
|
||||
RTC_Linux_GetReport(RPT_RTC_Report *report)
|
||||
{
|
||||
report->ref_time = (unsigned long) coef_ref_time;
|
||||
report->ref_time.tv_sec = coef_ref_time;
|
||||
report->ref_time.tv_usec = 0;
|
||||
report->n_samples = n_samples;
|
||||
report->n_runs = n_runs;
|
||||
if (n_samples > 1) {
|
||||
|
||||
Reference in New Issue
Block a user