Fix sign reversal in adjtime(2).

Approved by:	jkh
This commit is contained in:
phk 2000-02-13 10:56:32 +00:00
parent 793e1b469d
commit 1a019f2377
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;