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

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: Presubmit complaint. 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 c3374ca920194b00890d864115e492e3aad624f5..b4b3b9bf3e1a8a849f4d72885f66e6d92c141d7f 100644
--- a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
+++ b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
@@ -280,7 +280,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)
« no previous file with comments | « webrtc/tools/py_event_log_analyzer/misc_test.py ('k') | webrtc/tools/py_event_log_analyzer/rtp_analyzer_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698