mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Add workaround for payload upload/download rate
The graphs are showing 0 for both payload upload & download rate but torrent statistics aren't, so suppress it manually. The workaround only applies to paused state for now. Closes #17294.
This commit is contained in:
@@ -1329,12 +1329,14 @@ qreal TorrentImpl::realRatio() const
|
|||||||
|
|
||||||
int TorrentImpl::uploadPayloadRate() const
|
int TorrentImpl::uploadPayloadRate() const
|
||||||
{
|
{
|
||||||
return m_nativeStatus.upload_payload_rate;
|
// workaround: suppress the speed for paused state
|
||||||
|
return isPaused() ? 0 : m_nativeStatus.upload_payload_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
int TorrentImpl::downloadPayloadRate() const
|
int TorrentImpl::downloadPayloadRate() const
|
||||||
{
|
{
|
||||||
return m_nativeStatus.download_payload_rate;
|
// workaround: suppress the speed for paused state
|
||||||
|
return isPaused() ? 0 : m_nativeStatus.download_payload_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
qlonglong TorrentImpl::totalPayloadUpload() const
|
qlonglong TorrentImpl::totalPayloadUpload() const
|
||||||
|
|||||||
Reference in New Issue
Block a user