diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | psutil/_psutil_windows.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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) diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index ef7c1627..66943899 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -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, |