git://git.novaco.in
/
p2pool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
removed garbage collection before taking memory measurement, which was causing cpu...
[p2pool.git]
/
p2pool
/
util
/
memory.py
diff --git
a/p2pool/util/memory.py
b/p2pool/util/memory.py
index
b7be340
..
9b50ad1
100644
(file)
--- a/
p2pool/util/memory.py
+++ b/
p2pool/util/memory.py
@@
-5,7
+5,6
@@
_scale = {'kB': 1024, 'mB': 1024*1024,
'KB': 1024, 'MB': 1024*1024}
def resident():
- gc.collect()
with open('/proc/%d/status' % os.getpid()) as f:
v = f.read()
i = v.index('VmRSS:')