print out percentage complete of files in client_test

This commit is contained in:
Arvid Norberg 2008-07-09 10:02:24 +00:00
parent 63d4e0d4a3
commit 9d97fc4bb9
1 changed files with 4 additions and 4 deletions

View File

@ -1409,10 +1409,10 @@ int main(int ac, char* av[])
for (int i = 0; i < info.num_files(); ++i) for (int i = 0; i < info.num_files(); ++i)
{ {
if (file_progress[i] == 1.f) if (file_progress[i] == 1.f)
out << progress_bar(file_progress[i], 40, "32") << " " out << progress_bar(file_progress[i], 60, "32");
<< info.file_at(i).path.leaf() << "\n";
else else
out << progress_bar(file_progress[i], 40, "33") << " " out << progress_bar(file_progress[i], 60, "33");
out << " " << to_string(file_progress[i] * 100.f, 3) << "% "
<< info.file_at(i).path.leaf() << "\n"; << info.file_at(i).path.leaf() << "\n";
} }