diff options
author | phk <phk@FreeBSD.org> | 2000-02-13 10:56:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-02-13 10:56:32 +0000 |
commit | 1a019f23778b14d17f1acf207f4848d2abd889ec (patch) | |
tree | fe83190fa5bee027ab4848857c7d7337237061da /sys/kern/kern_clock.c | |
parent | 793e1b469de28e62091b91715532f4bc97ed5fa5 (diff) | |
download | FreeBSD-src-1a019f23778b14d17f1acf207f4848d2abd889ec.zip FreeBSD-src-1a019f23778b14d17f1acf207f4848d2abd889ec.tar.gz |
Fix sign reversal in adjtime(2).
Approved by: jkh
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 02fb48a..6166e1c 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -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; |