From 60271c8ac969d0b1363b00d7d226d98eb0e56316 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 22 Nov 2005 21:55:41 +0000 Subject: [PATCH] add proc_state.threads --- src/os/aix/aix_sigar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index c5441b26..72a6f9d0 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -1152,7 +1152,8 @@ 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: procstate->state = 'R';