dht log parser update

This commit is contained in:
Arvid Norberg 2008-05-09 16:21:09 +00:00
parent c91429e977
commit ebcb6861ca
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@ histogram = {}
for i in xrange(0, 50): histogram[i] = 0
for line in f.readlines():
counter = 0;
for line in f:
counter += 1
if counter % 1000 == 0:
print '\r%d' % counter,
try:
if not 'distance:' in line: continue;
l = line.split(' ')