mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07: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:
parent
bafe4e909c
commit
56bb379024
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue