forked from premiere/premiere-libtorrent
don't print so much in test_web_seed
This commit is contained in:
parent
3435da235d
commit
6903e0495e
|
@ -106,7 +106,7 @@ void test_transfer(boost::intrusive_ptr<torrent_info> torrent_file
|
|||
cs = ses.get_cache_status();
|
||||
if (cs.blocks_read < 1) cs.blocks_read = 1;
|
||||
if (cs.blocks_written < 1) cs.blocks_written = 1;
|
||||
|
||||
/*
|
||||
std::cerr << (s.progress * 100.f) << " %"
|
||||
<< " torrent rate: " << (s.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
|
||||
<< " buffers: " << cs.total_used_buffers
|
||||
<< std::endl;
|
||||
|
||||
*/
|
||||
print_alerts(ses, " >> ses");
|
||||
|
||||
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 h2 = file_hash(combine_path("./tmp1_web_seed"
|
||||
, torrent_file->file_at(i).path));
|
||||
fprintf(stderr, "%s: %s == %s\n"
|
||||
, torrent_file->file_at(i).path.c_str()
|
||||
, to_hex(h1.to_string()).c_str(), to_hex(h2.to_string()).c_str());
|
||||
// fprintf(stderr, "%s: %s == %s\n"
|
||||
// , torrent_file->file_at(i).path.c_str()
|
||||
// , to_hex(h1.to_string()).c_str(), to_hex(h2.to_string()).c_str());
|
||||
TEST_EQUAL(h1, h2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue