add proc_state.threads

This commit is contained in:
Doug MacEachern 2005-11-22 21:55:41 +00:00
parent bb5aa9c263
commit 60271c8ac9
1 changed files with 2 additions and 1 deletions

View File

@ -1152,6 +1152,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->nice = pinfo->pi_nice;
procstate->tty = pinfo->pi_ttyd;
procstate->priority = SIGAR_FIELD_NOTIMPL; /* XXX getthrds() */
procstate->threads = pinfo->pi_thcount;
switch (pinfo->pi_state) {
case SACTIVE: