made example client_test UI more compact

This commit is contained in:
Arvid Norberg 2008-11-27 20:10:17 +00:00
parent 5ed3daa49a
commit 65559b3441
1 changed files with 39 additions and 42 deletions

View File

@ -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;
} }