initializes totals to 0 in torrent

This commit is contained in:
Arvid Norberg
2008-04-22 22:37:40 +00:00
parent 1607acd0f8
commit d4ddf3712a

View File

@@ -206,6 +206,10 @@ namespace libtorrent
, m_max_connections((std::numeric_limits<int>::max)())
, m_deficit_counter(0)
, m_policy(this)
, m_active_time(seconds(0))
, m_seeding_time(seconds(0))
, m_total_uploaded(0)
, m_total_downloaded(0)
{
#ifndef NDEBUG
m_files_checked = false;
@@ -271,6 +275,10 @@ namespace libtorrent
, m_max_connections((std::numeric_limits<int>::max)())
, m_deficit_counter(0)
, m_policy(this)
, m_active_time(seconds(0))
, m_seeding_time(seconds(0))
, m_total_uploaded(0)
, m_total_downloaded(0)
{
#ifndef NDEBUG
m_files_checked = false;