improved accuracy of the file progress report to include completed blocks from incomplete pieces (but not partial blocks)

This commit is contained in:
Arvid Norberg
2008-07-09 10:45:07 +00:00
parent 9d97fc4bb9
commit d06f125513
5 changed files with 58 additions and 2 deletions

View File

@@ -1412,7 +1412,7 @@ int main(int ac, char* av[])
out << progress_bar(file_progress[i], 60, "32");
else
out << progress_bar(file_progress[i], 60, "33");
out << " " << to_string(file_progress[i] * 100.f, 3) << "% "
out << " " << to_string(file_progress[i] * 100.f, 5) << "% "
<< info.file_at(i).path.leaf() << "\n";
}