mirror of
https://github.com/powerline/powerline.git
synced 2025-07-13 17:04:52 +02:00
parent
7ef8f4f97e
commit
a272c6abb5
@ -150,6 +150,9 @@ try:
|
|||||||
return if_io.bytes_recv, if_io.bytes_sent
|
return if_io.bytes_recv, if_io.bytes_sent
|
||||||
|
|
||||||
def _get_interfaces():
|
def _get_interfaces():
|
||||||
|
try:
|
||||||
|
io_counters = psutil.net_io_counters(pernic=True)
|
||||||
|
except AttributeError:
|
||||||
io_counters = psutil.network_io_counters(pernic=True)
|
io_counters = psutil.network_io_counters(pernic=True)
|
||||||
for interface, data in io_counters.items():
|
for interface, data in io_counters.items():
|
||||||
if data:
|
if data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user