mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:05:06 -05:00
util: add UTI_IsZeroTimespec()
This commit is contained in:
@@ -1770,9 +1770,9 @@ NCR_SlewTimes(NCR_Instance inst, struct timespec *when, double dfreq, double dof
|
||||
{
|
||||
double delta;
|
||||
|
||||
if (inst->local_rx.tv_sec || inst->local_rx.tv_nsec)
|
||||
if (!UTI_IsZeroTimespec(&inst->local_rx))
|
||||
UTI_AdjustTimespec(&inst->local_rx, when, &inst->local_rx, &delta, dfreq, doffset);
|
||||
if (inst->local_tx.tv_sec || inst->local_tx.tv_nsec)
|
||||
if (!UTI_IsZeroTimespec(&inst->local_tx))
|
||||
UTI_AdjustTimespec(&inst->local_tx, when, &inst->local_tx, &delta, dfreq, doffset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user