Fix references to _ucache and _gcache
This commit is contained in:
parent
7650aa076d
commit
dbe27ffe29
1 changed files with 5 additions and 5 deletions
10
smem
10
smem
|
|
@ -46,12 +46,12 @@ class procdata(object):
|
||||||
return self._stat('%d/cmdline' % pid).st_gid
|
return self._stat('%d/cmdline' % pid).st_gid
|
||||||
def username(self, uid):
|
def username(self, uid):
|
||||||
if uid not in _ucache:
|
if uid not in _ucache:
|
||||||
_ucache[uid] = pwd.getpwuid(uid)[0]
|
self._ucache[uid] = pwd.getpwuid(uid)[0]
|
||||||
return _ucache[uid]
|
return self._ucache[uid]
|
||||||
def groupname(self, gid):
|
def groupname(self, gid):
|
||||||
if gid not in _gcache:
|
if gid not in self._gcache:
|
||||||
_gcache[gid] = pwd.getgrgid(gid)[0]
|
self._gcache[gid] = pwd.getgrgid(gid)[0]
|
||||||
return _gcache[gid]
|
return self._gcache[gid]
|
||||||
|
|
||||||
class tardata(procdata):
|
class tardata(procdata):
|
||||||
def __init__(self, source):
|
def __init__(self, source):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue