mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
- BUGFIX: Do not store and calculate ETA values for paused torrents
This commit is contained in:
parent
b5ccf05541
commit
b582ec9480
4
TODO
4
TODO
@ -46,7 +46,7 @@
|
|||||||
- update sorting when a new torrent is added?
|
- update sorting when a new torrent is added?
|
||||||
- Keep documention up to date
|
- Keep documention up to date
|
||||||
- Windows port (Chris - Peerkoel)
|
- Windows port (Chris - Peerkoel)
|
||||||
- write a patch for file_priority(int index), actual_size();
|
- write patches libtorrent for file_priority(int index), actual_size() ?
|
||||||
- valgrind --tool=memcheck --leak-check=full src/qbittorrent (Looks ok)
|
- valgrind --tool=memcheck --leak-check=full src/qbittorrent (Looks ok)
|
||||||
- 129m 30m 16m S 5.8 3.0 0:04.36 qbittorrent
|
- 129m 30m 16m S 5.8 3.0 0:04.36 qbittorrent
|
||||||
* beta 6
|
* beta 6
|
||||||
@ -90,5 +90,5 @@ beta5->beta6 changelog:
|
|||||||
- BUGFIX: ETA was wrong for torrents with filtered files
|
- BUGFIX: ETA was wrong for torrents with filtered files
|
||||||
- BUGFIX: Display the torrent that are being checked as 'checking' in seeding list
|
- BUGFIX: Display the torrent that are being checked as 'checking' in seeding list
|
||||||
- BUGFIX: Fixed file preview and improved previewable files detection
|
- BUGFIX: Fixed file preview and improved previewable files detection
|
||||||
- BUGFIX: Do not store and calculate ETA values for finished torrents
|
- BUGFIX: Do not store and calculate ETA values for finished/paused torrents
|
||||||
- I18N: Removed no longer maintained Traditional chinese translation
|
- I18N: Removed no longer maintained Traditional chinese translation
|
@ -109,6 +109,7 @@ void bittorrent::updateETAs() {
|
|||||||
foreach(hash, unfinishedTorrents) {
|
foreach(hash, unfinishedTorrents) {
|
||||||
QTorrentHandle h = getTorrentHandle(hash);
|
QTorrentHandle h = getTorrentHandle(hash);
|
||||||
if(h.is_valid()) {
|
if(h.is_valid()) {
|
||||||
|
if(h.is_paused()) continue;
|
||||||
QString hash = h.hash();
|
QString hash = h.hash();
|
||||||
QList<qlonglong> listEtas = ETAstats.value(hash, QList<qlonglong>());
|
QList<qlonglong> listEtas = ETAstats.value(hash, QList<qlonglong>());
|
||||||
if(listEtas.size() == ETAS_MAX_VALUES) {
|
if(listEtas.size() == ETAS_MAX_VALUES) {
|
||||||
@ -272,6 +273,9 @@ bool bittorrent::pauseTorrent(QString hash) {
|
|||||||
paused_file.open(QIODevice::WriteOnly | QIODevice::Text);
|
paused_file.open(QIODevice::WriteOnly | QIODevice::Text);
|
||||||
paused_file.close();
|
paused_file.close();
|
||||||
}
|
}
|
||||||
|
// Remove it from ETAs hash tables
|
||||||
|
ETAstats.remove(hash);
|
||||||
|
ETAs.remove(hash);
|
||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user