add proc_state.threads
This commit is contained in:
parent
bb5aa9c263
commit
60271c8ac9
|
@ -1152,6 +1152,7 @@ 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:
|
||||||
|
|
Loading…
Reference in New Issue