From: Bryan Christianson Date: Wed, 9 Dec 2015 07:11:06 +0000 (+1300) Subject: sys_macosx: fix adjustment correction after step X-Git-Tag: 2.3-pre1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9486ec7cab779b543baceb7f34b7808f5c34d8;p=thirdparty%2Fchrony.git sys_macosx: fix adjustment correction after step The desired offset was being added to the current time instead of being subtracted. --- diff --git a/sys_macosx.c b/sys_macosx.c index c1592ddd..fb2a70e9 100644 --- a/sys_macosx.c +++ b/sys_macosx.c @@ -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();