mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
- Made seed detection a bit safer (do not use progress)
This commit is contained in:
parent
a3cfa6bba1
commit
384f3b23ee
2 changed files with 6 additions and 3 deletions
|
@ -78,12 +78,12 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||
}
|
||||
event["name"] = QVariant(h.name());
|
||||
event["size"] = QVariant((qlonglong)h.actual_size());
|
||||
if(h.progress() < 1.) {
|
||||
if(!h.is_seed()) {
|
||||
event["progress"] = QVariant(h.progress());
|
||||
event["dlspeed"] = QVariant(h.download_payload_rate());
|
||||
}
|
||||
event["upspeed"] = QVariant(h.upload_payload_rate());
|
||||
event["seed"] = QVariant(h.progress() == 1.);
|
||||
event["seed"] = QVariant(h.is_seed());
|
||||
event["hash"] = QVariant(hash);
|
||||
event_list[hash] = event;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue