[chrony-dev] [PATCH] MacOSX - Incorrect sign in apply_step_offset() |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] [PATCH] MacOSX - Incorrect sign in apply_step_offset()
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Wed, 9 Dec 2015 20:11:06 +1300
- Cc: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:Message-Id:Date: Subject:To:From; bh=DgLpsbvvV+NfBTUiEXJSk432IF9y22Ta1bqrimuNdLk=; b=mdrfLbVbb 9q25NGcSpSro5JAZjthsm6N0R5oBr2Z0SOM/WFu5BIvK7wIBi8NT5duJvVpQ1mWc3QSiDX5lzmqA9 iq0wsCacsrRJ3/mpBtLKJi+EsUdivEORClTSfmUSCIyNdC3IFomW4xLn1bfIu+EKAF5qVUg+UqeQe yUL2yKb6zxcD+e0ESiKEHTzDi4/N7SJCJlypKIhrt7rIGekafEDAWDmu4erhsvYYOebf9S6JTq6/6 BsKMVHAwBaroBD0sj60NQcmtMhuB5b9J1hSCAzc9ogkjDAMBnbmc9xrPt2IDRjDCvuVe7sSHHsGw2 9DDdnvVQu9W5E8H1ulwPiKGuQ==;
- Feedback-id: 149811m:149811acx33YQ:149811s1xjcBujBI:SMTPCORP
The desired offset was being added to the current time instead of being subtracted.
---
sys_macosx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys_macosx.c b/sys_macosx.c
index c1592dd..fb2a70e 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();
--
2.4.9 (Apple Git-60)
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.