mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Fix "Seed until ratio reaches x.x" feature
This commit is contained in:
parent
73d0e2568a
commit
78b96accda
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ bool Bittorrent::isPexEnabled() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bittorrent::processBigRatios() {
|
void Bittorrent::processBigRatios() {
|
||||||
if(ratio_limit <= 0) return;
|
if(ratio_limit < 0) return;
|
||||||
qDebug("Process big ratios...");
|
qDebug("Process big ratios...");
|
||||||
std::vector<torrent_handle> torrents = s->get_torrents();
|
std::vector<torrent_handle> torrents = s->get_torrents();
|
||||||
std::vector<torrent_handle>::iterator torrentIT;
|
std::vector<torrent_handle>::iterator torrentIT;
|
||||||
|
@ -1838,7 +1838,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
// Torrents will a ratio superior to the given value will
|
// Torrents will a ratio superior to the given value will
|
||||||
// be automatically deleted
|
// be automatically deleted
|
||||||
void Bittorrent::setMaxRatio(float ratio) {
|
void Bittorrent::setMaxRatio(float ratio) {
|
||||||
if(ratio <= 0) ratio = -1.;
|
if(ratio < 0) ratio = -1.;
|
||||||
if(ratio_limit == -1 && ratio != -1) {
|
if(ratio_limit == -1 && ratio != -1) {
|
||||||
Q_ASSERT(!BigRatioTimer);
|
Q_ASSERT(!BigRatioTimer);
|
||||||
BigRatioTimer = new QTimer(this);
|
BigRatioTimer = new QTimer(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue