- BUGFIX: Updated INSTALL file

- BUGFIX: Optimized torrent real size calculation
This commit is contained in:
Christophe Dumez 2007-10-01 19:43:24 +00:00
parent 4f25e6c769
commit 20b6579392
3 changed files with 6 additions and 15 deletions

View File

@ -1,4 +1,4 @@
qBittorrent - A BitTorrent client in C++ / Qt4.2
qBittorrent - A BitTorrent client in C++ / Qt4
------------------------------------------
*** Necessary if qt3 is default on your system ***
@ -14,7 +14,7 @@ qbittorrent
will install and execute qBittorrent hopefully without any problems.
Dependencies:
- Qt >= 4.2 (libqt-devel, libqtgui, libqtcore, libqtnetwork, libqtxml)
- Qt >= 4.3.0 (libqt-devel, libqtgui, libqtcore, libqtnetwork, libqtxml)
- rblibtorrent by Arvid Norberg (>= v0.13 REQUIRED)
-> http://www.qbittorrent.org/download.php (advised)

5
TODO
View File

@ -55,8 +55,9 @@
- debug new torrent content selection
- Recheck doc
- Translations update (IN PROGRESS)
- Make use of total_wanted
rc3->rc4 changelog:
- BUGFIX: Fixed ip filter preferences (couldn't enable it)
- BUGFIX: Fixed a compilation problem on FreeBSD
- BUGFIX: Fixed compilation problems on FreeBSD (Ok now)
- BUGFIX: Updated INSTALL file
- BUGFIX: Optimized torrent real size calculation

View File

@ -129,17 +129,7 @@ QStringList QTorrentHandle::url_seeds() const {
// get the size of the torrent without the filtered files
size_type QTorrentHandle::actual_size() const{
Q_ASSERT(h.is_valid());
size_type size = 0;
std::vector<int> piece_priorities = h.piece_priorities();
for(unsigned int i = 0; i<piece_priorities.size(); ++i) {
if(piece_priorities[i])
size += h.get_torrent_info().piece_size(i);
}
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;
return h.status().total_wanted;
}
bool QTorrentHandle::has_filtered_pieces() const {