From 0c6ce2854f970f9365c0eed77d19fdd0fb38c259 Mon Sep 17 00:00:00 2001 From: tedu Date: Sat, 16 Aug 2014 16:38:38 +0000 Subject: [PATCH] reduce cutoff for "hours only" start times to reduce window of ambiguity. ok deraadt --- bin/ps/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ps/print.c b/bin/ps/print.c index afad45dd671..3ffd499f239 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.57 2014/07/04 05:58:31 guenther Exp $ */ +/* $OpenBSD: print.c,v 1.58 2014/08/16 16:38:38 tedu Exp $ */ /* $NetBSD: print.c,v 1.27 1995/09/29 21:58:12 cgd Exp $ */ /*- @@ -410,7 +410,7 @@ started(const struct kinfo_proc *kp, VARENT *ve) tp = localtime(&startt); if (!now) (void)time(&now); - if (now - kp->p_ustart_sec < 24 * SECSPERHOUR) { + if (now - kp->p_ustart_sec < 12 * SECSPERHOUR) { (void)strftime(buf, sizeof(buf) - 1, "%l:%M%p", tp); } else if (now - kp->p_ustart_sec < 7 * SECSPERDAY) { (void)strftime(buf, sizeof(buf) - 1, "%a%I%p", tp); -- 2.20.1