fix state rendering in client_test for checking and queued-for-checking torrents

This commit is contained in:
Arvid Norberg 2011-08-06 20:45:21 +00:00
parent 3e505f01fc
commit 4f7c9e2be2
1 changed files with 35 additions and 48 deletions

View File

@ -1806,8 +1806,6 @@ int main(int argc, char* argv[])
if (s.num_incomplete >= 0) downloaders = s.num_incomplete;
else downloaders = s.list_peers - s.list_seeds;
if (s.state != torrent_status::queued_for_checking && s.state != torrent_status::checking_files)
{
snprintf(str, sizeof(str), "%s%-13s down: (%s%s%s) up: %s%s%s (%s%s%s) swarm: %4d:%4d"
" bw queue: (%d|%d) all-time (Rx: %s%s%s Tx: %s%s%s) seed rank: %x %c%s\n"
, (!s.paused && !s.auto_managed)?"[F] ":""
@ -1846,17 +1844,6 @@ int main(int argc, char* argv[])
, s.progress_ppm / 10000.f
, progress_bar(s.progress_ppm / 1000, terminal_width - 43, progress_bar_color).c_str());
out += str;
}
else
{
snprintf(str, sizeof(str), "%-13s %s\n"
, (!s.paused && !s.auto_managed)?"[F] ":""
, (s.paused && !s.auto_managed)?"paused":
(s.paused && s.auto_managed)?"queued":
state_str[s.state]
, progress_bar(s.progress_ppm / 1000, terminal_width - 43 - 20, "35").c_str());
out += str;
}
++lines_printed;
if (print_piece_bar && s.state != torrent_status::seeding)