added feature to not count downloaded bytes from web seeds in stats

This commit is contained in:
Arvid Norberg
2010-07-15 06:27:44 +00:00
parent 89ca5a157a
commit 4c6be42b74
8 changed files with 39 additions and 2 deletions

View File

@@ -5770,7 +5770,10 @@ namespace libtorrent
{
peer_connection* p = *i;
++i;
m_stat += p->statistics();
if (!p->ignore_stats())
m_stat += p->statistics();
// updates the peer connection's ul/dl bandwidth
// resource requests
#ifndef BOOST_NO_EXCEPTIONS