From b0140fbdbeb5f5c53eb8cdcf9a258a06b75dd2dc Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 29 Sep 2007 08:32:22 +0000 Subject: [PATCH] - We have an optimized way to get the torrent actual size using libtorrent but this is buggy. Hence we don't use it yet. --- TODO | 1 + src/qtorrenthandle.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/TODO b/TODO index 1f33925b7..187390b41 100644 --- a/TODO +++ b/TODO @@ -55,6 +55,7 @@ - debug new torrent content selection - Recheck doc - Translations update (IN PROGRESS) +- Make use of total_wanted rc2->rc3 changelog: - BUGFIX: Fixed compilation problem on FreeBSD \ No newline at end of file diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 5e692efe2..4a2e4433e 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -137,6 +137,9 @@ size_type QTorrentHandle::actual_size() const{ } Q_ASSERT(size >= 0 && size <= h.get_torrent_info().total_size()); return size; + // TODO: Wait until this bug is fixed in libtorrent + // http://code.rasterbar.com/libtorrent/ticket/144 + //return h.status().total_wanted; } bool QTorrentHandle::has_filtered_pieces() const {