mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 18:15:07 -05:00
sys_macosx: fix adjustment correction after step
The desired offset was being added to the current time instead of being subtracted.
This commit is contained in:
committed by
Miroslav Lichvar
parent
fe502128b8
commit
2d9486ec7c
@@ -248,7 +248,7 @@ apply_step_offset(double offset)
|
||||
return 0;
|
||||
}
|
||||
|
||||
UTI_AddDoubleToTimeval(&T0, offset, &T1);
|
||||
UTI_AddDoubleToTimeval(&T0, -offset, &T1);
|
||||
T0 = T1;
|
||||
|
||||
start_adjust();
|
||||
|
||||
Reference in New Issue
Block a user