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