From 35b6903c6d404c14a92be90708e21646e5f0dd4d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 31 Jan 2004 17:13:40 +0000 Subject: [PATCH] *** empty log message *** --- docs/manual.html | 12 ++++++------ docs/manual.rst | 14 +++++++------- src/policy.cpp | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/manual.html b/docs/manual.html index 90ed1b623..2b914fe50 100755 --- a/docs/manual.html +++ b/docs/manual.html @@ -131,16 +131,16 @@ boost.filesystem, boost.date_time and various other boost libraries as well as z

libtorrent has been successfully compiled and tested on:

-

It does not compile on

+

Fails on:

libtorrent is released under the BSD-license.

@@ -444,7 +444,7 @@ public: reverse_file_iterator rbegin_files() const; reverse_file_iterator rend_files() const; - std::size_t num_files() const; + int num_files() const; const file& file_at(int index) const; const std::vector<announce_entry>& trackers() const; @@ -453,7 +453,7 @@ public: entry::integer_type total_size() const; entry::integer_type piece_length() const; - std::size_t num_pieces() const; + int num_pieces() const; const sha1_hash& info_hash() const; const std::stirng& name() const; const std::string& comment() const; diff --git a/docs/manual.rst b/docs/manual.rst index 856aebbcf..632943918 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -66,14 +66,14 @@ boost.filesystem, boost.date_time and various other boost libraries as well as z libtorrent has been successfully compiled and tested on: - * Cygwin GCC 3.3.1 * Windows 2000 vc7.1 - * Linux x86 (debian) GCC 3.0 + * Linux x86 (debian) GCC 3.0.4, GCC 3.2.3 * Windows 2000, msvc6 sp5 (does not support 64-bit values due to problems with operator<<(ostream&, __int64)) -It does not compile on +Fails on: - * GCC 2.95 + * Linux x86 (Debian) GCC 2.95.4 (``std::ios_base`` is missing) + * Cygwin GCC 3.3.1 (compiles but crashes) libtorrent is released under the BSD-license_. @@ -412,7 +412,7 @@ The ``torrent_info`` has the following synopsis:: reverse_file_iterator rbegin_files() const; reverse_file_iterator rend_files() const; - std::size_t num_files() const; + int num_files() const; const file& file_at(int index) const; const std::vector& trackers() const; @@ -421,7 +421,7 @@ The ``torrent_info`` has the following synopsis:: entry::integer_type total_size() const; entry::integer_type piece_length() const; - std::size_t num_pieces() const; + int num_pieces() const; const sha1_hash& info_hash() const; const std::stirng& name() const; const std::string& comment() const; @@ -672,7 +672,7 @@ all peers. The rates are given as the number of bytes per second. get_download_queue() -------------------- -``get_download_queue()`` takes a non-const reference to a vector which it will fill +``get_download_queue()`` takes a non-const reference to a vector which it will fill with information about pieces that are partially downloaded or not downloaded at all but partially requested. The entry in the vector (``partial_piece_info``) looks like this:: diff --git a/src/policy.cpp b/src/policy.cpp index 4c0ef04c9..0d6bf304e 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -63,7 +63,7 @@ namespace { // the limits of the download queue size max_request_queue = 16, - min_request_queue = 2, + min_request_queue = 4, // the amount of free upload allowed before // the peer is choked @@ -113,7 +113,7 @@ namespace // less will make the desired queue size 2 and at about 70 kB/s // it will reach the maximum of 16 requests. // matlab expression to plot: - // x = 1:100:100000; plot(x, round(min(max(x ./ 5000 + 1.5, 2), 16))); + // x = 1:100:100000; plot(x, round(min(max(x ./ 5000 + 1.5, 4), 16))); int desired_queue_size = static_cast(rate / 5000.f + 1.5f); if (desired_queue_size > max_request_queue) desired_queue_size = max_request_queue;