]> granicus.if.org Git - procps-ng/commitdiff
top: respond to an additional library 'state' category
authorJim Warner <james.warner@comcast.net>
Sat, 13 Jan 2018 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Mon, 12 Feb 2018 09:58:31 +0000 (20:58 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 6e0983ef26dd3097df6f2c28efb6f4048bf0a0a3..489530c4c5fedbf34e91ca841220396fdf1ecb37 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -4946,7 +4946,8 @@ static void summary_show (void) {
    if (isROOM(View_STATES, 2)) {
       show_special(0, fmtmk(N_unq(STATE_line_1_fmt)
          , Thread_mode ? N_txt(WORD_threads_txt) : N_txt(WORD_process_txt)
-         , PIDSmaxt, Pids_reap->counts->running, Pids_reap->counts->sleeping
+         , PIDSmaxt, Pids_reap->counts->running
+         , Pids_reap->counts->sleeping + Pids_reap->counts->other
          , Pids_reap->counts->stopped, Pids_reap->counts->zombied));
       Msg_row += 1;