Browse Source

Fix compilation on ARM. Closes #2204.

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
da9396ca94
  1. 2
      src/qtlibtorrent/torrentspeedmonitor.cpp

2
src/qtlibtorrent/torrentspeedmonitor.cpp

@ -140,7 +140,7 @@ Sample<qreal> SpeedSample::average() const @@ -140,7 +140,7 @@ Sample<qreal> SpeedSample::average() const
if (m_speedSamples.empty())
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) {

Loading…
Cancel
Save