BUGFIX: Fix ratio calculation for directly seeded torrents (Thanks phorane)

This commit is contained in:
Christophe Dumez
2010-02-17 08:10:57 +00:00
parent f0d0bb7170
commit 0f4f108eb5
3 changed files with 9 additions and 3 deletions

View File

@@ -336,6 +336,11 @@ bool QTorrentHandle::is_checking() const {
return h.status().state == torrent_status::checking_files || h.status().state == torrent_status::checking_resume_data;
}
size_type QTorrentHandle::total_done() {
Q_ASSERT(h.is_valid());
return h.status().total_done;
}
size_type QTorrentHandle::all_time_download() {
Q_ASSERT(h.is_valid());
return h.status().all_time_download;