summaryrefslogtreecommitdiff
path: root/psutil/_psbsd.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-10-25 00:15:37 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-10-25 00:15:37 +0200
commit0c233ed50778efb61dfb6df2a07b5d8a820cdd84 (patch)
tree5385bccf0c1b3dd27a12f65f92141916e70ddfff /psutil/_psbsd.py
parent3a9cfd3931f9d358d3aa414d3f1bcda198435b53 (diff)
downloadpsutil-0c233ed50778efb61dfb6df2a07b5d8a820cdd84.tar.gz
osx/bsd: separate IFFLAGS function
Diffstat (limited to 'psutil/_psbsd.py')
-rw-r--r--psutil/_psbsd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/_psbsd.py b/psutil/_psbsd.py
index 46698a22..206e0fd2 100644
--- a/psutil/_psbsd.py
+++ b/psutil/_psbsd.py
@@ -314,7 +314,8 @@ def net_if_stats():
ret = {}
for name in names:
mtu = cext_posix.net_if_mtu(name)
- isup, duplex, speed = cext_posix.net_if_stats(name)
+ isup = cext_posix.net_if_flags(name)
+ duplex, speed = cext_posix.net_if_duplex_speed(name)
if hasattr(_common, 'NicDuplex'):
duplex = _common.NicDuplex(duplex)
ret[name] = _common.snicstats(isup, duplex, speed, mtu)