Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/savecore Give a 60 day leeway instead of a week when ju...



details:   https://anonhg.NetBSD.org/src/rev/a4d1869d08d6
branches:  trunk
changeset: 565145:a4d1869d08d6
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 30 19:52:02 2004 +0000

description:
Give a 60 day leeway instead of a week when judging if the dumptime is valid.
7 days is too short when you are debugging time problems.

diffstat:

 sbin/savecore/savecore.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 80d8b30c8251 -r a4d1869d08d6 sbin/savecore/savecore.c
--- a/sbin/savecore/savecore.c  Tue Mar 30 19:41:35 2004 +0000
+++ b/sbin/savecore/savecore.c  Tue Mar 30 19:52:02 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: savecore.c,v 1.61 2003/08/07 10:04:39 agc Exp $        */
+/*     $NetBSD: savecore.c,v 1.62 2004/03/30 19:52:02 christos Exp $   */
 
 /*-
  * Copyright (c) 1986, 1992, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)savecore.c 8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: savecore.c,v 1.61 2003/08/07 10:04:39 agc Exp $");
+__RCSID("$NetBSD: savecore.c,v 1.62 2004/03/30 19:52:02 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -684,7 +684,7 @@
                return (0);
        }
        (void)printf("savecore: system went down at %s", ctime(&dumptime));
-#define        LEEWAY  (7 * SECSPERDAY)
+#define        LEEWAY  (60 * SECSPERDAY)
        if (dumptime < now - LEEWAY || dumptime > now + LEEWAY) {
                (void)printf("dump time is unreasonable\n");
                return (0);



Home | Main Index | Thread Index | Old Index