don't print so much in test_web_seed
This commit is contained in:
@@ -106,7 +106,7 @@ void test_transfer(boost::intrusive_ptr<torrent_info> torrent_file
|
|||||||
cs = ses.get_cache_status();
|
cs = ses.get_cache_status();
|
||||||
if (cs.blocks_read < 1) cs.blocks_read = 1;
|
if (cs.blocks_read < 1) cs.blocks_read = 1;
|
||||||
if (cs.blocks_written < 1) cs.blocks_written = 1;
|
if (cs.blocks_written < 1) cs.blocks_written = 1;
|
||||||
|
/*
|
||||||
std::cerr << (s.progress * 100.f) << " %"
|
std::cerr << (s.progress * 100.f) << " %"
|
||||||
<< " torrent rate: " << (s.download_rate / 1000.f) << " kB/s"
|
<< " torrent rate: " << (s.download_rate / 1000.f) << " kB/s"
|
||||||
<< " session rate: " << (ss.download_rate / 1000.f) << " kB/s"
|
<< " session rate: " << (ss.download_rate / 1000.f) << " kB/s"
|
||||||
@@ -117,7 +117,7 @@ void test_transfer(boost::intrusive_ptr<torrent_info> torrent_file
|
|||||||
<< " rcache: " << cs.read_cache_size
|
<< " rcache: " << cs.read_cache_size
|
||||||
<< " buffers: " << cs.total_used_buffers
|
<< " buffers: " << cs.total_used_buffers
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
*/
|
||||||
print_alerts(ses, " >> ses");
|
print_alerts(ses, " >> ses");
|
||||||
|
|
||||||
if (s.is_seeding /* && ss.download_rate == 0.f*/)
|
if (s.is_seeding /* && ss.download_rate == 0.f*/)
|
||||||
@@ -261,9 +261,9 @@ int run_suite(char const* protocol, bool test_url_seed, bool chunked_encoding)
|
|||||||
sha1_hash h1 = torrent_file->file_at(i).filehash;
|
sha1_hash h1 = torrent_file->file_at(i).filehash;
|
||||||
sha1_hash h2 = file_hash(combine_path("./tmp1_web_seed"
|
sha1_hash h2 = file_hash(combine_path("./tmp1_web_seed"
|
||||||
, torrent_file->file_at(i).path));
|
, torrent_file->file_at(i).path));
|
||||||
fprintf(stderr, "%s: %s == %s\n"
|
// fprintf(stderr, "%s: %s == %s\n"
|
||||||
, torrent_file->file_at(i).path.c_str()
|
// , torrent_file->file_at(i).path.c_str()
|
||||||
, to_hex(h1.to_string()).c_str(), to_hex(h2.to_string()).c_str());
|
// , to_hex(h1.to_string()).c_str(), to_hex(h2.to_string()).c_str());
|
||||||
TEST_EQUAL(h1, h2);
|
TEST_EQUAL(h1, h2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user