Ratio calculation improvement: make usage of new all_time_upload and all_time_download variables in torrent_status.

This commit is contained in:
Christophe Dumez 2008-11-01 22:07:14 +00:00
commit 82706141cf
5 changed files with 27 additions and 89 deletions

View file

@ -232,6 +232,16 @@ void QTorrentHandle::file_progress(std::vector<size_type>& fp) {
return h.file_progress(fp);
}
size_type QTorrentHandle::all_time_download() {
Q_ASSERT(h.is_valid());
return h.status().all_time_download;
}
size_type QTorrentHandle::all_time_upload() {
Q_ASSERT(h.is_valid());
return h.status().all_time_upload;
}
size_type QTorrentHandle::total_payload_download() {
Q_ASSERT(h.is_valid());
return h.status().total_payload_download;