refactored verbose peer logging to use format strings

This commit is contained in:
Arvid Norberg
2010-10-31 22:12:26 +00:00
parent c861d0344d
commit 8737a339c8
6 changed files with 165 additions and 205 deletions

View File

@@ -216,7 +216,7 @@ int run_suite(char const* protocol, bool test_url_seed, bool chunked_encoding)
else
{
piece_size = 64 * 1024;
char random_data[64 * 1024 * 50];
char random_data[64 * 1024 * 25];
std::generate(random_data, random_data + sizeof(random_data), &std::rand);
save_file("./tmp1_web_seed/seed", random_data, sizeof(random_data));
fs.add_file("seed", sizeof(random_data));