forked from premiere/premiere-libtorrent
test fixing
This commit is contained in:
parent
09f29217ee
commit
93f9d4b3b0
|
@ -61,7 +61,7 @@ char* piece3 = page_aligned_allocator::malloc(piece_size);
|
|||
void signal_bool(bool* b, char const* string)
|
||||
{
|
||||
*b = true;
|
||||
std::cerr << string << std::endl;
|
||||
std::cerr << time_now_string() << " " << string << std::endl;
|
||||
}
|
||||
|
||||
void on_read_piece(int ret, disk_io_job const& j, char const* data, int size)
|
||||
|
|
|
@ -95,7 +95,7 @@ void test_rate()
|
|||
|
||||
ptime start = time_now();
|
||||
|
||||
for (int i = 0; i < 50; ++i)
|
||||
for (int i = 0; i < 70; ++i)
|
||||
{
|
||||
print_alerts(ses1, "ses1", true, true, true, &predicate);
|
||||
print_alerts(ses2, "ses2", true, true, true, &predicate);
|
||||
|
@ -120,7 +120,6 @@ void test_rate()
|
|||
|
||||
std::cerr << "average download rate: " << (t->total_size() / (std::max)(total_milliseconds(dt), 1))
|
||||
<< " kB/s" << std::endl;
|
||||
|
||||
}
|
||||
|
||||
void print_alert(std::auto_ptr<alert>)
|
||||
|
|
Loading…
Reference in New Issue