mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 18:26:11 +03:00
Merge pull request #14518 from glassez/speedplot
Don't allow speed plot buffer to overflow
This commit is contained in:
commit
d7bacdcbff
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue