dht stats now truncates the log from previous run
This commit is contained in:
@@ -342,7 +342,7 @@ namespace libtorrent { namespace dht
|
|||||||
int peers = 0;
|
int peers = 0;
|
||||||
std::for_each(m_dht.begin_data(), m_dht.end_data(), count_peers(peers));
|
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)
|
if (first)
|
||||||
{
|
{
|
||||||
first = false;
|
first = false;
|
||||||
|
Reference in New Issue
Block a user