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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user