From 8f45fea7db2180065a19297d544da42d544bca4a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 6 Aug 2011 17:43:22 +0000 Subject: [PATCH] print paused state for checking and queued-for-checking torrents in client_test --- examples/client_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 3ac3931c8..da27cbd9a 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1850,7 +1850,10 @@ int main(int argc, char* argv[]) else { snprintf(str, sizeof(str), "%-13s %s\n" - , state_str[s.state] + , (!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; }