Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern If time delta is larger than thresh. Use 10* adj fa...
details: https://anonhg.NetBSD.org/src/rev/f70d120b797c
branches: trunk
changeset: 477086:f70d120b797c
user: hwr <hwr%NetBSD.org@localhost>
date: Sun Oct 10 18:41:53 1999 +0000
description:
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@localhost>
in kern/8589.
diffstat:
sys/kern/kern_time.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 78ec360fd081 -r f70d120b797c sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Sun Oct 10 15:17:43 1999 +0000
+++ b/sys/kern/kern_time.c Sun Oct 10 18:41:53 1999 +0000
@@ -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 @@
* 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