diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-30 04:35:06 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-30 04:35:06 +0000 |
commit | 3a63312b55f6f420c0379d8ec486a9138df7c6bb (patch) | |
tree | af1ad67425ac3cf8ba0530bae9fe6e61e0c3b061 /sys/arch/alpha | |
parent | 0fbc8131ada2f77e29193275e28a0291af60e57c (diff) |
Fix dmesg nit.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/clock.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/clock.c b/sys/arch/alpha/alpha/clock.c index ee9e789def9..b49736d2f39 100644 --- a/sys/arch/alpha/alpha/clock.c +++ b/sys/arch/alpha/alpha/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.17 2007/04/25 09:27:01 art Exp $ */ +/* $OpenBSD: clock.c,v 1.18 2007/04/30 04:35:05 miod Exp $ */ /* $NetBSD: clock.c,v 1.29 2000/06/05 21:47:10 thorpej Exp $ */ /* @@ -258,10 +258,13 @@ inittodr(time_t base) deltat = ts.tv_sec - base; if (deltat < 0) deltat = -deltat; - if (deltat >= 2 * SECDAY) - printf("WARNING: clock %s %ld days", - ts.tv_sec < base ? "lost" : "gained", - (long)deltat / SECDAY); + if (deltat < 2 * SECDAY) { + tc_setclock(&ts); + return; + } + printf("WARNING: clock %s %ld days", + ts.tv_sec < base ? "lost" : "gained", + (long)deltat / SECDAY); } bad: tc_setclock(&ts); |