diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-25 00:15:37 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-25 00:15:37 +0200 |
commit | 0c233ed50778efb61dfb6df2a07b5d8a820cdd84 (patch) | |
tree | 5385bccf0c1b3dd27a12f65f92141916e70ddfff /psutil/_psbsd.py | |
parent | 3a9cfd3931f9d358d3aa414d3f1bcda198435b53 (diff) | |
download | psutil-0c233ed50778efb61dfb6df2a07b5d8a820cdd84.tar.gz |
osx/bsd: separate IFFLAGS function
Diffstat (limited to 'psutil/_psbsd.py')
-rw-r--r-- | psutil/_psbsd.py | 3 |
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) |