Skip to content

Commit

Permalink
Including non-unicast packets in packet count calculation (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
matray authored and giampaolo committed Nov 8, 2017
1 parent 62c845a commit e3f911e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions psutil/_psutil_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -2304,8 +2304,8 @@ psutil_net_io_counters(PyObject *self, PyObject *args) {
py_nic_info = Py_BuildValue("(KKKKKKKK)",
pIfRow->OutOctets,
pIfRow->InOctets,
pIfRow->OutUcastPkts,
pIfRow->InUcastPkts,
(pIfRow->OutUcastPkts + pIfRow->OutNUcastPkts),
(pIfRow->InUcastPkts + pIfRow->InNUcastPkts),
pIfRow->InErrors,
pIfRow->OutErrors,
pIfRow->InDiscards,
Expand All @@ -2314,8 +2314,8 @@ psutil_net_io_counters(PyObject *self, PyObject *args) {
py_nic_info = Py_BuildValue("(kkkkkkkk)",
pIfRow->dwOutOctets,
pIfRow->dwInOctets,
pIfRow->dwOutUcastPkts,
pIfRow->dwInUcastPkts,
(pIfRow->dwOutUcastPkts + pIfRow->dwOutNUcastPkts),
(pIfRow->dwInUcastPkts + pIfRow->dwInNUcastPkts),
pIfRow->dwInErrors,
pIfRow->dwOutErrors,
pIfRow->dwInDiscards,
Expand Down

0 comments on commit e3f911e

Please sign in to comment.