Fix sign reversal in adjtime(2).

Approved by:	jkh
This commit is contained in:
Poul-Henning Kamp 2000-02-13 10:56:32 +00:00
parent 9a1498a435
commit f1220da49c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57182
2 changed files with 2 additions and 2 deletions

View File

@ -775,7 +775,7 @@ tco_forward(int force)
tco->tc_poll_pps(tco);
if (timedelta != 0) {
tvt = boottime;
tvt.tv_usec -= tickdelta;
tvt.tv_usec += tickdelta;
if (tvt.tv_usec >= 1000000) {
tvt.tv_sec++;
tvt.tv_usec -= 1000000;

View File

@ -775,7 +775,7 @@ tco_forward(int force)
tco->tc_poll_pps(tco);
if (timedelta != 0) {
tvt = boottime;
tvt.tv_usec -= tickdelta;
tvt.tv_usec += tickdelta;
if (tvt.tv_usec >= 1000000) {
tvt.tv_sec++;
tvt.tv_usec -= 1000000;