minor fixes from massaroddel

This commit is contained in:
Arvid Norberg 2014-02-02 10:05:32 +00:00
parent 651a052461
commit 5dea631708
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/bencode.hpp"
#include "libtorrent/torrent.hpp"
#include "libtorrent/extensions.hpp"
#include "libtorrent/extensions/ut_metadata.hpp"
#include "libtorrent/extensions/lt_trackers.hpp"
#include "libtorrent/alert_types.hpp"
#include "libtorrent/escape_string.hpp"
#include "libtorrent/parse_url.hpp"

View File

@ -445,7 +445,7 @@ namespace libtorrent { namespace
static ptime global_last = min_time();
int num_peers = m_torrent.num_peers();
if (num_peers == 1) return;
if (num_peers <= 1) return;
// don't send pex messages more often than 1 every 100 ms, and
// allow pex messages to be sent 5 seconds apart if there isn't