From b4fbaaa47c8176a0f03d41a4ba6e55a747ead5b8 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 17 Aug 2007 02:22:04 +0000 Subject: [PATCH] BUGFIX: Improved incremental download --- Changelog | 1 + TODO | 1 + src/bittorrent.cpp | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 5874991b2..f38bdc66e 100644 --- a/Changelog +++ b/Changelog @@ -47,6 +47,7 @@ - BUGFIX: The number of search results was not reset when clicking on 'Clear' button - BUGFIX: Update torrent progress when its content changed (filtered files) - BUGFIX: Improved the way menu icons are installed to avoid problems on some systems + - BUGFIX: Improved incremental download - COSMETIC: Redesigned torrent properties a little - COSMETIC: Redesigned options a little - COSMETIC: Display more logs messages concerning features diff --git a/TODO b/TODO index 208622eb0..a8332610e 100644 --- a/TODO +++ b/TODO @@ -78,5 +78,6 @@ beta4->beta5 changelog: - BUGFIX: Fixed the way icons are installed to avoid problems on some systems - BUGFIX: Fixed qBittorrent version in .desktop file - BUGFIX: Fixed session ratio value (was either 10. or 1.) +- BUGFIX: Improved incremental download - I18N: Updated Italian, Polish, Portuguese, Brazilian translations - COSMETIC: Changed the way progress bars are rendered diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 2e53efbe2..88da2753d 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -386,7 +386,7 @@ void bittorrent::addTorrent(QString path, bool fromScanDir, QString from_url){ // Incremental download if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".incremental")){ qDebug("Incremental download enabled for %s", t.name().c_str()); - h.set_sequenced_download_threshold(15); + h.set_sequenced_download_threshold(1); } // If download from url, remove temp file if(!from_url.isNull()) QFile::remove(file); @@ -1062,7 +1062,7 @@ void bittorrent::reloadTorrent(const torrent_handle &h){ // Incremental download if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+fileHash+".incremental")){ qDebug("Incremental download enabled for %s", (const char*)fileName.toUtf8()); - new_h.set_sequenced_download_threshold(15); + new_h.set_sequenced_download_threshold(1); } }