Source-Changes-HG archive

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

[src/trunk]: src/bin/ls Print some future timestamps with HH:MM rather than Y...



details:   https://anonhg.NetBSD.org/src/rev/1ffc03dcf404
branches:  trunk
changeset: 571327:1ffc03dcf404
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Nov 17 17:00:00 2004 +0000

description:
Print some future timestamps with HH:MM rather than YYYY, so that we get
something reasonable if we're using a file server whose time is slightly
ahead.

diffstat:

 bin/ls/print.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 32a5cced84ca -r 1ffc03dcf404 bin/ls/print.c
--- a/bin/ls/print.c    Wed Nov 17 16:56:16 2004 +0000
+++ b/bin/ls/print.c    Wed Nov 17 17:00:00 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.39 2004/08/09 20:14:54 jschauma Exp $      */
+/*     $NetBSD: print.c,v 1.40 2004/11/17 17:00:00 mycroft Exp $       */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.5 (Berkeley) 7/28/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.39 2004/08/09 20:14:54 jschauma Exp $");
+__RCSID("$NetBSD: print.c,v 1.40 2004/11/17 17:00:00 mycroft Exp $");
 #endif
 #endif /* not lint */
 
@@ -385,7 +385,7 @@
        if (f_sectime)
                for (i = 11; i < 24; i++)
                        (void)putchar(longstring[i]);
-       else if (ftime + SIXMONTHS > now && ftime <= now)
+       else if (ftime + SIXMONTHS > now && ftime - SIXMONTHS < now)
                for (i = 11; i < 16; ++i)
                        (void)putchar(longstring[i]);
        else {



Home | Main Index | Thread Index | Old Index