made example client_test UI more compact
This commit is contained in:
parent
5ed3daa49a
commit
65559b3441
|
@ -1348,8 +1348,7 @@ int main(int ac, char* av[])
|
||||||
<< std::hex << s.seed_rank << std::dec << " "
|
<< std::hex << s.seed_rank << std::dec << " "
|
||||||
<< s.last_scrape << "\n" << esc("0");
|
<< s.last_scrape << "\n" << esc("0");
|
||||||
|
|
||||||
if (s.state != torrent_status::seeding)
|
if (torrent_index != active_torrent) continue;
|
||||||
{
|
|
||||||
char const* progress_bar_color = "33"; // yellow
|
char const* progress_bar_color = "33"; // yellow
|
||||||
if (s.state == torrent_status::checking_files
|
if (s.state == torrent_status::checking_files
|
||||||
|| s.state == torrent_status::downloading_metadata)
|
|| s.state == torrent_status::downloading_metadata)
|
||||||
|
@ -1388,9 +1387,7 @@ int main(int ac, char* av[])
|
||||||
<< to_string(t.minutes(), 2) << ":"
|
<< to_string(t.minutes(), 2) << ":"
|
||||||
<< to_string(t.seconds(), 2) << esc("0") << " ";
|
<< to_string(t.seconds(), 2) << esc("0") << " ";
|
||||||
out << "tracker: " << esc("36") << s.current_tracker << esc("0") << "\n";
|
out << "tracker: " << esc("36") << s.current_tracker << esc("0") << "\n";
|
||||||
}
|
|
||||||
|
|
||||||
if (torrent_index != active_torrent) continue;
|
|
||||||
active_handle = h;
|
active_handle = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue