Skip to content

Commit

Permalink
[POSIX] psutil.users() loses precision for "started" attribute #2225 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Apr 12, 2023
1 parent 81e3a61 commit 501e636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psutil/_psutil_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,11 +1016,11 @@ psutil_users(PyObject *self, PyObject *args) {
goto error;

py_tuple = Py_BuildValue(
"(OOOfO)",
"(OOOdO)",
py_username, // username
py_tty, // tty
py_hostname, // hostname
(float)utx->ut_tv.tv_sec, // start time
(double)utx->ut_tv.tv_sec, // start time
py_pid // process id
);

Expand Down

0 comments on commit 501e636

Please sign in to comment.