mirror of https://github.com/n1nj4sec/pupy.git
pupyps: If cache cleaned up, then cpu stats are wrong
This commit is contained in:
parent
210027105d
commit
d011366e88
|
@ -74,7 +74,6 @@ def psinfo(pids):
|
|||
|
||||
data[pid] = info
|
||||
|
||||
psutil._pmap = {}
|
||||
return data
|
||||
|
||||
def safe_as_dict(p, data):
|
||||
|
@ -142,7 +141,6 @@ def pstree():
|
|||
if 0 in tree and 0 in tree[0]:
|
||||
tree[0].remove(0)
|
||||
|
||||
psutil._pmap = {}
|
||||
return min(tree), tree, data
|
||||
|
||||
def users():
|
||||
|
@ -210,7 +208,6 @@ def users():
|
|||
|
||||
info[term.name][host].append(terminfo)
|
||||
|
||||
psutil._pmap = {}
|
||||
return info
|
||||
|
||||
def connections():
|
||||
|
@ -241,7 +238,6 @@ def connections():
|
|||
|
||||
connections.append(obj)
|
||||
|
||||
psutil._pmap = {}
|
||||
return connections
|
||||
|
||||
def _tryint(x):
|
||||
|
|
Loading…
Reference in New Issue