BUGFIX: Improved incremental download

This commit is contained in:
Christophe Dumez 2007-08-17 02:22:04 +00:00
parent df8c591edd
commit b4fbaaa47c
3 changed files with 4 additions and 2 deletions

View file

@ -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);
}
}