Be more forgiving of environment errors for memory and user views
This commit is contained in:
parent
e39d81ff24
commit
830285d7ba
1 changed files with 4 additions and 4 deletions
8
smem
8
smem
|
|
@ -316,8 +316,8 @@ def maptotals(pids):
|
|||
t['pids'] += 1
|
||||
seen[name] = 1
|
||||
totals[name] = t
|
||||
except:
|
||||
raise
|
||||
except EnvironmentError:
|
||||
continue
|
||||
return totals
|
||||
|
||||
def showmaps():
|
||||
|
|
@ -366,8 +366,8 @@ def usertotals(pids):
|
|||
maps = pidmaps(pid)
|
||||
if len(maps) == 0:
|
||||
continue
|
||||
except:
|
||||
raise
|
||||
except EnvironmentError:
|
||||
continue
|
||||
user = src.piduser(pid)
|
||||
if user not in totals:
|
||||
t = dict(size=0, rss=0, pss=0, shared_clean=0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue