pupyps: If cache cleaned up, then cpu stats are wrong

This commit is contained in:
Oleksii Shevchuk 2018-11-04 20:18:50 +02:00
parent 210027105d
commit d011366e88
1 changed files with 0 additions and 4 deletions

View File

@ -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):