mirror of https://github.com/nicolargo/glances
Add comment for the BSD issue unsin netifaces
parent
73b383155b
commit
a4d499d7eb
|
@ -185,7 +185,7 @@ mem_critical=90
|
|||
refresh=30
|
||||
# Set the default timeout for a scan (can be overwrite in the scan list)
|
||||
timeout=3
|
||||
# If True, add the default gateway on top of the port list
|
||||
# If True, add the default gateway on top of the scan list
|
||||
port_default_gateway=True
|
||||
# Define the scan list
|
||||
# host (name or IP) is mandatory
|
||||
|
|
|
@ -30,6 +30,7 @@ from glances.plugins.glances_plugin import GlancesPlugin
|
|||
|
||||
# XXX *BSDs: Segmentation fault (core dumped)
|
||||
# -- https://bitbucket.org/al45tair/netifaces/issues/15
|
||||
# Also used in the ports_list script
|
||||
if not BSD:
|
||||
try:
|
||||
import netifaces
|
||||
|
|
|
@ -25,6 +25,7 @@ from glances.globals import BSD
|
|||
|
||||
# XXX *BSDs: Segmentation fault (core dumped)
|
||||
# -- https://bitbucket.org/al45tair/netifaces/issues/15
|
||||
# Also used in the glances_ip plugin
|
||||
if not BSD:
|
||||
try:
|
||||
import netifaces
|
||||
|
|
Loading…
Reference in New Issue