further simplify the DHT by getting rid of the result type and just using observers instead. This might save some memory and should fix the assert that would be triggered before

This commit is contained in:
Arvid Norberg
2010-11-05 19:06:50 +00:00
parent 23ac52c164
commit d3a8916f02
13 changed files with 197 additions and 204 deletions

View File

@@ -37,11 +37,14 @@ for line in f:
print line.split(' ')
out = open('dht_announce_distribution.dat', 'w+')
print 'announce distribution items: %d' % len(announce_histogram)
for k,v in announce_histogram.items():
print >>out, '%d %d' % (k, v)
print '%d %d' % (k, v)
out.close()
out = open('dht_node_uptime_distribution.dat', 'w+')
print 'node uptimes: %d' % len(node_uptime_histogram)
for k,v in node_uptime_histogram.items():
print >>out, '%d %d' % (k + up_time_quanta/2, v)
out.close()