Browse Source

Merge pull request #14518 from glassez/speedplot

Don't allow speed plot buffer to overflow
adaptive-webui-19844
Vladimir Golovnev 4 years ago committed by GitHub
parent
commit
d7bacdcbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/properties/speedplotview.cpp

2
src/gui/properties/speedplotview.cpp

@ -137,7 +137,7 @@ bool SpeedPlotView::Averager::push(const SampleData &sampleData) @@ -137,7 +137,7 @@ bool SpeedPlotView::Averager::push(const SampleData &sampleData)
// once we go above the max duration never go below that
// otherwise it will cause empty space in graphs
while (!m_sink.empty()
&& ((m_currentDuration - m_sink.front().duration) > m_maxDuration))
&& ((m_currentDuration - m_sink.front().duration) >= m_maxDuration))
{
m_currentDuration -= m_sink.front().duration;
m_sink.pop_front();

Loading…
Cancel
Save