disk stats fix

This commit is contained in:
Arvid Norberg 2009-08-01 22:47:07 +00:00
parent dfe2af0311
commit 838a246f6b
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,6 @@ namespace libtorrent
m_categories["read 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);
#endif
#ifdef TORRENT_DEBUG
@ -284,6 +283,9 @@ namespace libtorrent
, m_work(io_service::work(m_ios))
, 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()