mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 06:54:20 +00:00
Fix compilation on ARM. Closes #2204.
This commit is contained in:
parent
8882895f5e
commit
da9396ca94
@ -140,7 +140,7 @@ Sample<qreal> SpeedSample::average() const
|
|||||||
if (m_speedSamples.empty())
|
if (m_speedSamples.empty())
|
||||||
return Sample<qreal>();
|
return Sample<qreal>();
|
||||||
|
|
||||||
return Sample<qreal>(m_sum) * (1. / m_speedSamples.size());
|
return Sample<qreal>(m_sum) * (qreal(1.) / m_speedSamples.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentSpeedMonitor::removeSamples(const QTorrentHandle& h) {
|
void TorrentSpeedMonitor::removeSamples(const QTorrentHandle& h) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user