mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-24 01:35:23 +03:00
Fix typo: s/AccesDenied/AccessDenied/
Helps with "AttributeError: 'module' object has no attribute 'AccesDenied'"
This commit is contained in:
parent
a81bf5cd75
commit
8a643f10e1
@ -507,19 +507,19 @@ class GlancesGrabProcesses:
|
||||
|
||||
try:
|
||||
procstat['memory_info'] = proc.get_memory_info()
|
||||
except psutil.AccesDenied:
|
||||
except psutil.AccessDenied:
|
||||
procstat['memory_info'] = {}
|
||||
|
||||
try:
|
||||
procstat['memory_percent'] = proc.get_memory_percent()
|
||||
except psutil.AccesDenied:
|
||||
except psutil.AccessDenied:
|
||||
procstat['memory_percent'] = {}
|
||||
|
||||
if psutil_get_cpu_percent_tag:
|
||||
try:
|
||||
procstat['cpu_percent'] = \
|
||||
proc.get_cpu_percent(interval=0)
|
||||
except psutil.AccesDenied:
|
||||
except psutil.AccessDenied:
|
||||
procstat['cpu_percent'] = {}
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user