memory optimization for checking torrents
This commit is contained in:
@@ -299,7 +299,7 @@ setup_transfer(session* ses1, session* ses2, session* ses3
|
||||
}
|
||||
char ih_hex[41];
|
||||
to_hex((char const*)&t->info_hash()[0], 20, ih_hex);
|
||||
std::cerr << "generated torrent: " << ih_hex << std::endl;
|
||||
std::cerr << "generated torrent: " << ih_hex << " ./tmp1" << suffix << "/temporary" << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -96,7 +96,7 @@ void test_swarm(bool super_seeding = false, bool strict = false, bool seed_mode
|
||||
p.seed_mode = seed_mode;
|
||||
// test using piece sizes smaller than 16kB
|
||||
boost::tie(tor1, tor2, tor3) = setup_transfer(&ses1, &ses2, &ses3, true
|
||||
, false, true, "_swarm", 8 * 1024, 0, super_seeding, &p);
|
||||
, false, true, "_swarm", 32 * 1024, 0, super_seeding, &p);
|
||||
|
||||
if (time_critical)
|
||||
{
|
||||
|
Reference in New Issue
Block a user