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}
This commit is contained in:
parent
e405d9b8df
commit
553024ab34
@ -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]")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user