git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
e04f198
)
print warning if uncollectable cyclic garbage is produced
author
Forrest Voight
<forrest@forre.st>
Wed, 9 Jan 2013 07:17:33 +0000 (
02:17
-0500)
committer
Forrest Voight
<forrest@forre.st>
Wed, 9 Jan 2013 07:17:33 +0000 (
02:17
-0500)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
a0e5ff3
..
d191c03
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-1,6
+1,7
@@
from __future__ import division
import base64
+import gc
import json
import os
import random
@@
-338,6
+339,9
@@
def main(args, net, datadir_path, merged_urls, worker_endpoint):
print >>sys.stderr, '#'*40
print >>sys.stderr, '>>> Warning: ' + warning
print >>sys.stderr, '#'*40
+
+ if gc.garbage:
+ print '%i pieces of uncollectable cyclic garbage! Types: %r' % (len(gc.garbage), map(type, gc.garbage))
if this_str != last_str or time.time() > last_time + 15:
print this_str