forked from premiere/premiere-libtorrent
print out percentage complete of files in client_test
This commit is contained in:
parent
63d4e0d4a3
commit
9d97fc4bb9
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue