summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2015-12-19 13:40:44 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2015-12-19 13:40:44 +0100
commit25d99888826e4b9d98151bd3bc71ca669ed81252 (patch)
tree170c347e48ef75ded2a6a888ed96fb6458404fd8
parent0425446575ed489c363efa9cf8eeda98c115e43f (diff)
downloadpsutil-613-thread-names.tar.gz
fix netbsd thread name613-thread-names
-rw-r--r--psutil/arch/bsd/openbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/arch/bsd/openbsd.c b/psutil/arch/bsd/openbsd.c
index b9b65b42..ee080cf4 100644
--- a/psutil/arch/bsd/openbsd.c
+++ b/psutil/arch/bsd/openbsd.c
@@ -301,7 +301,7 @@ psutil_proc_threads(PyObject *self, PyObject *args) {
kp[i].p_tid,
PSUTIL_KPT2DOUBLE(kp[i].p_uutime),
PSUTIL_KPT2DOUBLE(kp[i].p_ustime),
- kp[i].ki_comm);
+ kp[i].p_comm);
if (py_tuple == NULL)
goto error;
if (PyList_Append(py_retlist, py_tuple))