improve test logging

This commit is contained in:
Arvid Norberg
2013-06-20 05:28:42 +00:00
parent 67f631e44e
commit 208321dab0
9 changed files with 14 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ void test_rate()
torrent_status st2 = tor2.status();
if (i % 10 == 0)
print_ses_rate(&st1, &st2);
print_ses_rate(i / 10.f, &st1, &st2);
if (st2.is_seeding) break;
test_sleep(100);
@@ -364,7 +364,7 @@ void test_transfer(int proxy_type, bool test_disk_full = false, bool test_allowe
if (i % 10 == 0)
{
print_ses_rate(&st1, &st2);
print_ses_rate(i / 10.f, &st1, &st2);
}
if (!test_move_storage && st2.progress > 0.25f)
@@ -536,7 +536,7 @@ void test_transfer(int proxy_type, bool test_disk_full = false, bool test_allowe
torrent_status st2 = tor2.status();
if (i % 10 == 0)
print_ses_rate(&st1, &st2);
print_ses_rate(i / 10.f, &st1, &st2);
if (tor2.status().is_finished) break;