diff --git a/parse_dht_rtt.py b/parse_dht_rtt.py index b2fa5c2d9..eac6f0b28 100755 --- a/parse_dht_rtt.py +++ b/parse_dht_rtt.py @@ -3,8 +3,8 @@ import sys import os -quantize = 200 -max_rtt = 10000 +quantize = 100 +max_rtt = 5000 f = open(sys.argv[1]) distribution = {} @@ -15,7 +15,7 @@ for i in range(0, max_rtt, quantize): for line in f: time = int(line.split('\t')[1]) - if (time < 0 or time > max_rtt): continue + if (time < 0 or time > max_rtt - quantize): continue num_messages += 1 time /= quantize time *= quantize