mirror of https://github.com/nicolargo/glances
Load plugin - OSError: [WinError 87] on Windows 10 #1965
parent
a3d0dfc1e3
commit
e4b4e702e6
|
@ -90,7 +90,7 @@ class Plugin(GlancesPlugin):
|
|||
"""Get load average. On both Linux and Windows thanks to PsUtil"""
|
||||
try:
|
||||
return psutil.getloadavg()
|
||||
except AttributeError:
|
||||
except (AttributeError, OSError):
|
||||
pass
|
||||
try:
|
||||
return os.getloadavg()
|
||||
|
|
Loading…
Reference in New Issue