add proc_state.threads
This commit is contained in:
parent
bb5aa9c263
commit
60271c8ac9
|
@ -1152,7 +1152,8 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
||||||
procstate->nice = pinfo->pi_nice;
|
procstate->nice = pinfo->pi_nice;
|
||||||
procstate->tty = pinfo->pi_ttyd;
|
procstate->tty = pinfo->pi_ttyd;
|
||||||
procstate->priority = SIGAR_FIELD_NOTIMPL; /* XXX getthrds() */
|
procstate->priority = SIGAR_FIELD_NOTIMPL; /* XXX getthrds() */
|
||||||
|
procstate->threads = pinfo->pi_thcount;
|
||||||
|
|
||||||
switch (pinfo->pi_state) {
|
switch (pinfo->pi_state) {
|
||||||
case SACTIVE:
|
case SACTIVE:
|
||||||
procstate->state = 'R';
|
procstate->state = 'R';
|
||||||
|
|
Loading…
Reference in New Issue