Fix _ucache some more
This commit is contained in:
parent
dbe27ffe29
commit
d3d782beb0
1 changed files with 1 additions and 1 deletions
2
smem
2
smem
|
|
@ -45,7 +45,7 @@ class procdata(object):
|
|||
def pidgroup(self, pid):
|
||||
return self._stat('%d/cmdline' % pid).st_gid
|
||||
def username(self, uid):
|
||||
if uid not in _ucache:
|
||||
if uid not in self._ucache:
|
||||
self._ucache[uid] = pwd.getpwuid(uid)[0]
|
||||
return self._ucache[uid]
|
||||
def groupname(self, gid):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue