summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>2004-09-16 09:23:21 +0000
committerpefo <pefo@openbsd.org>2004-09-16 09:23:21 +0000
commite0e94d42e02a3a40670f5f230e28c3a543d2ea05 (patch)
treef7d50707dc481d0921abdbece9e03bca4c33ef3b
parentcleanup deafult locators (blah ?); please check that your most hated architecture is still fluffy (; (diff)
downloadwireguard-openbsd-e0e94d42e02a3a40670f5f230e28c3a543d2ea05.tar.xz
wireguard-openbsd-e0e94d42e02a3a40670f5f230e28c3a543d2ea05.zip
Day of week count 1-7
-rw-r--r--sys/arch/mips64/mips64/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/clock.c b/sys/arch/mips64/mips64/clock.c
index ed1fd327bc7..3b28a6d90b8 100644
--- a/sys/arch/mips64/mips64/clock.c
+++ b/sys/arch/mips64/mips64/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.6 2004/08/11 17:05:31 pefo Exp $ */
+/* $OpenBSD: clock.c,v 1.7 2004/09/16 09:23:21 pefo Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -379,7 +379,7 @@ resettodr()
/* compute the day of week. 1 is Sunday*/
t2 = time.tv_sec / SECDAY;
- c.dow = (t2 + 5) % 7; /* 1/1/1970 was thursday */
+ c.dow = (t2 + 5) % 7 + 1; /* 1/1/1970 was thursday */
/* compute the year */
t2 = time.tv_sec / SECDAY;