dht stats now truncates the log from previous run

This commit is contained in:
Arvid Norberg 2008-12-27 03:34:05 +00:00
parent 28cb451eac
commit 3d2726c523
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ namespace libtorrent { namespace dht
int peers = 0;
std::for_each(m_dht.begin_data(), m_dht.end_data(), count_peers(peers));
std::ofstream pc("dht_stats.log", std::ios_base::app);
std::ofstream pc("dht_stats.log", std::ios_base::app | std::ios_base::trunc);
if (first)
{
first = false;