From 9d97fc4bb9c1e7f6bc8f6b3ceaf3296879ed6c1a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 9 Jul 2008 10:02:24 +0000 Subject: [PATCH] print out percentage complete of files in client_test --- examples/client_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 0766b26b0..3621221d6 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1409,11 +1409,11 @@ int main(int ac, char* av[]) for (int i = 0; i < info.num_files(); ++i) { if (file_progress[i] == 1.f) - out << progress_bar(file_progress[i], 40, "32") << " " - << info.file_at(i).path.leaf() << "\n"; + out << progress_bar(file_progress[i], 60, "32"); else - out << progress_bar(file_progress[i], 40, "33") << " " - << info.file_at(i).path.leaf() << "\n"; + out << progress_bar(file_progress[i], 60, "33"); + out << " " << to_string(file_progress[i] * 100.f, 3) << "% " + << info.file_at(i).path.leaf() << "\n"; } out << "___________________________________\n";