summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-16 09:23:22 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-16 09:23:22 +0000
commitf222101e7e2893c100c59a8bc20ba2905f1b3a41 (patch)
treed706606ac88f4ac0b3e6b9bf55beaa0ba78bb090
parent16778c1dd02981d333597aecc214fc63986bb86a (diff)
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;