Browse Source

- BUGFIX: Updated INSTALL file

- BUGFIX: Optimized torrent real size calculation
adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
20b6579392
  1. 4
      INSTALL
  2. 5
      TODO
  3. 12
      src/qtorrenthandle.cpp

4
INSTALL

@ -1,4 +1,4 @@ @@ -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 @@ -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

@ -55,8 +55,9 @@ @@ -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

12
src/qtorrenthandle.cpp

@ -129,17 +129,7 @@ QStringList QTorrentHandle::url_seeds() const { @@ -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 {

Loading…
Cancel
Save