Fix sign reversal in adjtime(2).
Approved by: jkh
This commit is contained in:
parent
793e1b469d
commit
1a019f2377
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user