disk stats fix
This commit is contained in:
@@ -63,7 +63,6 @@ namespace libtorrent
|
|||||||
m_categories["read cache"] = 0;
|
m_categories["read cache"] = 0;
|
||||||
m_categories["write cache"] = 0;
|
m_categories["write cache"] = 0;
|
||||||
|
|
||||||
m_log.open("disk_io_thread.log", std::ios::trunc);
|
|
||||||
m_disk_access_log.open("disk_access.log", std::ios::trunc);
|
m_disk_access_log.open("disk_access.log", std::ios::trunc);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TORRENT_DEBUG
|
#ifdef TORRENT_DEBUG
|
||||||
@@ -284,6 +283,9 @@ namespace libtorrent
|
|||||||
, m_work(io_service::work(m_ios))
|
, m_work(io_service::work(m_ios))
|
||||||
, m_disk_io_thread(boost::ref(*this))
|
, m_disk_io_thread(boost::ref(*this))
|
||||||
{
|
{
|
||||||
|
#ifdef TORRENT_DISK_STATS
|
||||||
|
m_log.open("disk_io_thread.log", std::ios::trunc);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
disk_io_thread::~disk_io_thread()
|
disk_io_thread::~disk_io_thread()
|
||||||
|
Reference in New Issue
Block a user