Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/kern Pull up revision 1.41 (requested by hwr):



details:   https://anonhg.NetBSD.org/src/rev/9cfef73c8bb5
branches:  netbsd-1-4
changeset: 469629:9cfef73c8bb5
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 20 23:48:33 1999 +0000

description:
Pull up revision 1.41 (requested by hwr):
  If time delta is larger than thresh, use 10* adjustment factor.
  Make this work for negative deltas too.  Fixes PR#8589.

diffstat:

 sys/kern/kern_time.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r cd70fa3761a5 -r 9cfef73c8bb5 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c      Wed Oct 20 23:44:52 1999 +0000
+++ b/sys/kern/kern_time.c      Wed Oct 20 23:48:33 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time.c,v 1.36.6.1 1999/06/18 17:12:28 perry Exp $ */
+/*     $NetBSD: kern_time.c,v 1.36.6.2 1999/10/20 23:48:33 he Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -360,7 +360,7 @@
         * 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;



Home | Main Index | Thread Index | Old Index