Fix typo: s/AccesDenied/AccessDenied/

Helps with "AttributeError: 'module' object has no attribute 'AccesDenied'"
This commit is contained in:
Filip Noetzel 2012-12-30 21:05:52 +01:00
parent a81bf5cd75
commit 8a643f10e1

View File

@ -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: