Skip to content

Commit

Permalink
fix issue 460: [Windows] net_io_counters() wraps after 4G.
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Apr 30, 2014
1 parent 297aa1b commit 50bd135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ BUG FIXES

* 446: [Windows] fix encoding error when using net_io_counters() on Python 3.
(patch by Szigeti Gabor Niif)
* 460: [Windows] net_io_counters() wraps after 4G.
* 491: [Linux] psutil.net_connections() exceptions. (patch by Alexander Grothe)


Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ psutil_net_io_counters(PyObject *self, PyObject *args)
goto error;
}

py_nic_info = Py_BuildValue("(IIIIIIII)",
py_nic_info = Py_BuildValue("(kkkkkkkk)",
pIfRow->dwOutOctets,
pIfRow->dwInOctets,
pIfRow->dwOutUcastPkts,
Expand Down

0 comments on commit 50bd135

Please sign in to comment.