summaryrefslogtreecommitdiff
path: root/libps/procstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libps/procstat.c')
-rw-r--r--libps/procstat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 9c674bf2..8060faf6 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -446,7 +446,9 @@ get_thread_info (struct procinfo *pi, unsigned index)
}
/* Returns a pointer to the Nth entry in the '\0'-separated vector of strings
- in ARGZ & ARGZ_LEN. */
+ in ARGZ & ARGZ_LEN. Note that we don't have to do the bit with only
+ counting non-dead threads like get_thread_info does, because the
+ thread_waits string vector only contains entries for live threads. */
char *
get_thread_wait (char *waits, size_t waits_len, unsigned n)
{