If time delta is larger than thresh. Use 10* adj factor. Make this
work for negative deltas too. From NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp> in kern/8589.
This commit is contained in:
parent
9dfae77a40
commit
6d638c3405
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_time.c,v 1.40 1999/08/16 18:53:55 tron Exp $ */
|
||||
/* $NetBSD: kern_time.c,v 1.41 1999/10/10 18:41:53 hwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -358,7 +358,7 @@ sys_adjtime(p, v, retval)
|
|||
* overshoot and start taking us away from the desired final time.
|
||||
*/
|
||||
ndelta = atv.tv_sec * 1000000 + atv.tv_usec;
|
||||
if (ndelta > bigadj)
|
||||
if (ndelta > bigadj || ndelta < -bigadj)
|
||||
ntickdelta = 10 * tickadj;
|
||||
else
|
||||
ntickdelta = tickadj;
|
||||
|
|
Loading…
Reference in New Issue