Browse Source

Fix share ratio limiting. Broken by commit 259b5e51c4. Closes #6039 #6048.

adaptive-webui-19844
sledgehammer999 8 years ago
parent
commit
4f59caf3ca
  1. 3
      src/base/bittorrent/session.cpp

3
src/base/bittorrent/session.cpp

@ -1292,7 +1292,8 @@ void Session::processBigRatios()
qreal globalMaxRatio = this->globalMaxRatio(); qreal globalMaxRatio = this->globalMaxRatio();
foreach (TorrentHandle *const torrent, m_torrents) { foreach (TorrentHandle *const torrent, m_torrents) {
if (torrent->isSeed() if (torrent->isSeed()
&& ((torrent->ratioLimit() != TorrentHandle::NO_RATIO_LIMIT) || !torrent->isForced())) { && (torrent->ratioLimit() != TorrentHandle::NO_RATIO_LIMIT)
&& !torrent->isForced()) {
const qreal ratio = torrent->realRatio(); const qreal ratio = torrent->realRatio();
qreal ratioLimit = torrent->ratioLimit(); qreal ratioLimit = torrent->ratioLimit();
if (ratioLimit == TorrentHandle::USE_GLOBAL_RATIO) { if (ratioLimit == TorrentHandle::USE_GLOBAL_RATIO) {

Loading…
Cancel
Save