diff options
author | 2014-08-16 16:38:38 +0000 | |
---|---|---|
committer | 2014-08-16 16:38:38 +0000 | |
commit | 0c6ce2854f970f9365c0eed77d19fdd0fb38c259 (patch) | |
tree | ccfe4717b6a8db58336b268f2e53587795594cdf | |
parent | I found a number of interactive events which can cause signals, and go (diff) | |
download | wireguard-openbsd-0c6ce2854f970f9365c0eed77d19fdd0fb38c259.tar.xz wireguard-openbsd-0c6ce2854f970f9365c0eed77d19fdd0fb38c259.zip |
reduce cutoff for "hours only" start times to reduce window of ambiguity.
ok deraadt
-rw-r--r-- | bin/ps/print.c | 4 |
1 files 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); |