mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Fix sign reversal in adjtime(2).
Approved by: jkh
This commit is contained in:
parent
9a1498a435
commit
f1220da49c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57182
@ -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