From d497b1025a3f109e6f06b04d90c265d59deee6d3 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 21 Feb 2013 00:00:00 -0600 Subject: [PATCH] top: some idiot broke 'idle' mode with u/U 'exclusion' This patch fixes the single stinkin' source line which was responsible for breaking the top idle-mode toggle. Without this change, either 'u' or 'U' must be invoked just once before the 'i' command would show something. (yes, everything's perfectly justified once again but) (i'm not very happy over the need for this damn patch) Reference(s): commit d04297843f14e399c699c29b4222b9c9d168c116 Signed-off-by: Jim Warner --- top/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/top/top.c b/top/top.c index 267b7f1e..e254e202 100644 --- a/top/top.c +++ b/top/top.c @@ -1316,7 +1316,7 @@ static const char *user_certify (WIN_t *q, const char *str, char typ) { static inline int user_matched (WIN_t *q, const proc_t *p) { switch(q->usrseltyp) { case 0: // uid selection inactive - return q->usrselflg; + return 1; case 'U': // match any uid if (p->ruid == q->usrseluid) return q->usrselflg; if (p->suid == q->usrseluid) return q->usrselflg;