test fixing

This commit is contained in:
Arvid Norberg 2013-08-01 08:03:11 +00:00
parent 09f29217ee
commit 93f9d4b3b0
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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>)