mirror of https://github.com/nicolargo/glances.git
OpenBSD crash on start without a swap file/partition #2719
This commit is contained in:
parent
c62292444b
commit
693cd8e20d
|
|
@ -79,8 +79,9 @@ class PluginModel(GlancesPluginModel):
|
|||
# Grab SWAP using the psutil swap_memory method
|
||||
try:
|
||||
sm_stats = psutil.swap_memory()
|
||||
except RuntimeError:
|
||||
except (OSError, RuntimeError):
|
||||
# Crash on startup on Illumos when no swap is configured #1767
|
||||
# OpenBSD crash on start without a swap file/partition #2719
|
||||
pass
|
||||
else:
|
||||
# Get all the swap stats (copy/paste of the psutil documentation)
|
||||
|
|
|
|||
Loading…
Reference in New Issue