summaryrefslogtreecommitdiff
path: root/psutil/_psutil_sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/_psutil_sunos.c')
-rw-r--r--psutil/_psutil_sunos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psutil_sunos.c b/psutil/_psutil_sunos.c
index 84bf1c40..e2e7c018 100644
--- a/psutil/_psutil_sunos.c
+++ b/psutil/_psutil_sunos.c
@@ -647,11 +647,11 @@ psutil_users(PyObject *self, PyObject *args) {
if (! py_hostname)
goto error;
py_tuple = Py_BuildValue(
- "(OOOfOi)",
+ "(OOOdOi)",
py_username, // username
py_tty, // tty
py_hostname, // hostname
- (float)ut->ut_tv.tv_sec, // tstamp
+ (double)ut->ut_tv.tv_sec, // tstamp
py_user_proc, // (bool) user process
ut->ut_pid // process id
);