Skip to content

Commit

Permalink
Add seconds to thread run times on MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilm committed May 15, 2018
1 parent 1b5f8d5 commit 3b6f5b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psutil/_psutil_osx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@ psutil_proc_threads(PyObject *self, PyObject *args) {
py_tuple = Py_BuildValue(
"Iff",
j + 1,
(float)basic_info_th->user_time.microseconds / 1000000.0,
(float)basic_info_th->system_time.microseconds / 1000000.0
basic_info_th->user_time.seconds + (float)basic_info_th->user_time.microseconds / 1000000.0,
basic_info_th->system_time.seconds + (float)basic_info_th->system_time.microseconds / 1000000.0
);
if (!py_tuple)
goto error;
Expand Down

0 comments on commit 3b6f5b2

Please sign in to comment.