Commit 7a439618 authored by Joanne Hugé's avatar Joanne Hugé

Fix wrong interval unit when computing jitter

parent 4f65279c
......@@ -54,7 +54,7 @@ def compute_offsets_stats(file_path, interval):
if i > 0:
val = arrival_tstamp - prev_tstamp
jitter = (val - interval) / 1000
jitter = (val - interval * 1000) / 1000
histogram_index = int(1000 + jitter)
if histogram_index < 0 or histogram_index > 2000:
print("jitter too high: {}\n".format(jitter))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment