Browse Source

Rename variable

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
b6b0b54cdb
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 6
      src/base/bittorrent/torrentimpl.cpp
  2. 2
      src/base/bittorrent/torrentimpl.h

6
src/base/bittorrent/torrentimpl.cpp

@ -1038,7 +1038,7 @@ qlonglong TorrentImpl::eta() const @@ -1038,7 +1038,7 @@ qlonglong TorrentImpl::eta() const
{
if (isPaused()) return MAX_ETA;
const SpeedSampleAvg speedAverage = m_speedMonitor.average();
const SpeedSampleAvg speedAverage = m_payloadRateMonitor.average();
if (isSeed())
{
@ -1611,7 +1611,7 @@ void TorrentImpl::pause() @@ -1611,7 +1611,7 @@ void TorrentImpl::pause()
setAutoManaged(false);
m_nativeHandle.pause();
m_speedMonitor.reset();
m_payloadRateMonitor.reset();
}
}
@ -2114,7 +2114,7 @@ void TorrentImpl::updateStatus(const lt::torrent_status &nativeStatus) @@ -2114,7 +2114,7 @@ void TorrentImpl::updateStatus(const lt::torrent_status &nativeStatus)
m_nativeStatus = nativeStatus;
updateState();
m_speedMonitor.addSample({nativeStatus.download_payload_rate
m_payloadRateMonitor.addSample({nativeStatus.download_payload_rate
, nativeStatus.upload_payload_rate});
if (hasMetadata())

2
src/base/bittorrent/torrentimpl.h

@ -298,7 +298,7 @@ namespace BitTorrent @@ -298,7 +298,7 @@ namespace BitTorrent
QHash<lt::file_index_t, int> m_indexMap;
QVector<DownloadPriority> m_filePriorities;
QBitArray m_completedFiles;
SpeedMonitor m_speedMonitor;
SpeedMonitor m_payloadRateMonitor;
InfoHash m_infoHash;

Loading…
Cancel
Save