From d011366e88ee43f55a51cc25ba846876597c2fcc Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Sun, 4 Nov 2018 20:18:50 +0200 Subject: [PATCH] pupyps: If cache cleaned up, then cpu stats are wrong --- pupy/packages/all/pupyps.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pupy/packages/all/pupyps.py b/pupy/packages/all/pupyps.py index 6fcf142f..32ea5800 100644 --- a/pupy/packages/all/pupyps.py +++ b/pupy/packages/all/pupyps.py @@ -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):