Fix bug that causes the visualization of RTCP fraction lost to be cropped.

The bug comes from computing the axis limits before adding the data.

Bug: webrtc:8417
Change-Id: I1e3860b4f655f40cd261d09b8357d563dbe51f1d
Reviewed-on: https://webrtc-review.googlesource.com/12922
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20355}
This commit is contained in:
Bjorn Terelius 2017-10-18 12:39:49 +02:00 committed by Commit Bot
parent 8818237538
commit 19f5be3e7b

View File

@ -898,11 +898,11 @@ void EventLogAnalyzer::CreateFractionLossGraph(Plot* plot) {
time_series.points.emplace_back(x, y);
}
plot->AppendTimeSeries(std::move(time_series));
plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
plot->SetSuggestedYAxis(0, 10, "Percent lost packets", kBottomMargin,
kTopMargin);
plot->SetTitle("Reported packet loss");
plot->AppendTimeSeries(std::move(time_series));
}
// Plot the total bandwidth used by all RTP streams.