mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
Update offset correction errors only when needed
This commit is contained in:
7
local.c
7
local.c
@@ -349,13 +349,8 @@ LCL_CookTime(struct timeval *raw, struct timeval *cooked, double *err)
|
||||
void
|
||||
LCL_GetOffsetCorrection(struct timeval *raw, double *correction, double *err)
|
||||
{
|
||||
double e;
|
||||
|
||||
/* Call system specific driver to get correction */
|
||||
(*drv_offset_convert)(raw, correction, &e);
|
||||
|
||||
if (err)
|
||||
*err = e;
|
||||
(*drv_offset_convert)(raw, correction, err);
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
Reference in New Issue
Block a user