Commit c888534a authored by jim warner's avatar jim warner Committed by Craig Small
Browse files

top: account for the idle state ('I') threads in total

With the documentation update in the commit referenced
below, we should also account for such threads as they
will already be represented in the task/thread totals.

[ and do it in a way that might avoid future changes ]

Reference(s):
commit a238a687

Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
parent b4bce3b8
Pipeline #17406052 passed with stage
in 2 minutes and 16 seconds
......@@ -2728,17 +2728,21 @@ static void procs_hlp (proc_t *this) {
case 'R':
Frame_running++;
break;
case 'S':
case 'D':
Frame_sleepin++;
break;
case 't': // 't' (tracing stop)
case 'T':
Frame_stopped++;
break;
case 'Z':
Frame_zombied++;
break;
default: // keep gcc happy
default:
/* currently: 'D' (disk sleep),
'I' (idle),
'P' (parked),
'S' (sleeping),
'X' (dead - actually 'dying' & probably never seen)
*/
Frame_sleepin++;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment