Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1180)

Unified Diff: webrtc/tools/py_event_log_analyzer/rtp_analyzer.py

Issue 2316573003: Python event log analyzer tool: fix of indexing issue. (Closed)
Patch Set: Try/catch blocks in include. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
diff --git a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
index 1a9b695c3a7bf7dd282f9a17c244c3cddb01549a..aeff7f2fb2ee19d554eee89ebcaf8066373a0279 100644
--- a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
+++ b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
@@ -271,7 +271,7 @@ def calculate_delay(start, stop, step, points):
masked array, in which time points with no value are masked.
"""
- grouped_delays = [[] for _ in numpy.arange(start, stop, step)]
+ grouped_delays = [[] for _ in numpy.arange(start, stop + step, step)]
rounded_value_index = lambda x: int((x - start) / step)
for point in points:
grouped_delays[rounded_value_index(point.real_send_time_ms)

Powered by Google App Engine
This is Rietveld 408576698