summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-04-25 09:27:02 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-04-25 09:27:02 +0000
commit522e359078b87dd9048e29aaa1634612cdbdc706 (patch)
treedcd456534bdb35d6179c69fe84143e1ad47ed98e /sys/arch/alpha
parent74e54df869adeb138a212068f29035a99304bd7c (diff)
Yet another case that forgot to set the time.
pointed out by and ok miod@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/clock.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/alpha/alpha/clock.c b/sys/arch/alpha/alpha/clock.c
index 24a93e01db5..ee9e789def9 100644
--- a/sys/arch/alpha/alpha/clock.c
+++ b/sys/arch/alpha/alpha/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.16 2007/04/25 09:07:02 art Exp $ */
+/* $OpenBSD: clock.c,v 1.17 2007/04/25 09:27:01 art Exp $ */
/* $NetBSD: clock.c,v 1.29 2000/06/05 21:47:10 thorpej Exp $ */
/*
@@ -258,11 +258,10 @@ inittodr(time_t base)
deltat = ts.tv_sec - base;
if (deltat < 0)
deltat = -deltat;
- if (deltat < 2 * SECDAY)
- return;
- printf("WARNING: clock %s %ld days",
- ts.tv_sec < base ? "lost" : "gained",
- (long)deltat / SECDAY);
+ if (deltat >= 2 * SECDAY)
+ printf("WARNING: clock %s %ld days",
+ ts.tv_sec < base ? "lost" : "gained",
+ (long)deltat / SECDAY);
}
bad:
tc_setclock(&ts);