Merge commit 'a272c6a' into develop

This commit is contained in:
Foo 2015-08-30 01:23:03 +03:00
commit 5ebf0875b8

View File

@ -150,6 +150,9 @@ try:
return if_io.bytes_recv, if_io.bytes_sent
def _get_interfaces():
try:
io_counters = psutil.net_io_counters(pernic=True)
except AttributeError:
io_counters = psutil.network_io_counters(pernic=True)
for interface, data in io_counters.items():
if data: