removed garbage collection before taking memory measurement, which was causing cpu...
authorForrest Voight <forrest@forre.st>
Thu, 10 Jan 2013 16:04:50 +0000 (11:04 -0500)
committerForrest Voight <forrest@forre.st>
Thu, 10 Jan 2013 16:04:50 +0000 (11:04 -0500)
p2pool/util/memory.py

index b7be340..9b50ad1 100644 (file)
@@ -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:')