From 553024ab34e7307046388d20c29e9f9a8177aa0a Mon Sep 17 00:00:00 2001 From: aleloi Date: Tue, 18 Oct 2016 01:44:44 -0700 Subject: [PATCH] During a fix of an unrelated issue, a bug was introduced in the rtp analyzer tool: when the number of data points was divisible by RTPStatitstics.PLOT_RESOLUTION_MS (which is 50), pyplot.plot was called with arrays of different lengths. One of the arrays could be one element larger. This change trims the potentially longer array to the size of the smaller one. NOTRY=True BUG=none Review-Url: https://codereview.webrtc.org/2357883002 Cr-Commit-Position: refs/heads/master@{#14657} --- webrtc/tools/py_event_log_analyzer/rtp_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py index b4b3b9bf3e..a4b199e891 100644 --- a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py +++ b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py @@ -259,7 +259,7 @@ class RTPStatistics(object): self.data_points) plt.figure(1) - plt.plot(time_axis, delay) + plt.plot(time_axis, delay[:len(time_axis)]) plt.xlabel("Send time [s]") plt.ylabel("Relative transport delay [ms]")