summaryrefslogtreecommitdiff
path: root/psutil/_psutil_linux.c
diff options
context:
space:
mode:
authorAlexander Hasselhuhn <alexander.hasselhuhn@tu-dortmund.de>2017-04-25 23:05:21 +0200
committerAlexander Hasselhuhn <alexander.hasselhuhn@tu-dortmund.de>2017-04-25 23:05:21 +0200
commitb353b5fa58cfd996258f45691044e8fb95cd0444 (patch)
treec0bc917f2f8f9cbd0f43879035f0e5a45881da32 /psutil/_psutil_linux.c
parenta9e3effa73a31c6ca77356964f0563f8531e4467 (diff)
downloadpsutil-b353b5fa58cfd996258f45691044e8fb95cd0444.tar.gz
in psutil_users() move pid to the back
Diffstat (limited to 'psutil/_psutil_linux.c')
-rw-r--r--psutil/_psutil_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c
index a4fe940b..5ab69d2b 100644
--- a/psutil/_psutil_linux.c
+++ b/psutil/_psutil_linux.c
@@ -455,8 +455,8 @@ psutil_users(PyObject *self, PyObject *args) {
ut->ut_line, // tty
ut->ut_host, // hostname
(float)ut->ut_tv.tv_sec, // tstamp
- ut->ut_pid, // process id
- py_user_proc // (bool) user process
+ py_user_proc, // (bool) user process
+ ut->ut_pid // process id
);
if (! py_tuple)
goto error;