diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 7cc90d1ca..97077a1be 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -913,7 +913,8 @@ int main(int argc, char* argv[]) " -W Set the max number of peers to keep in the peer list\n" " -N Do not attempt to use UPnP and NAT-PMP to forward ports\n" " -Y Rate limit local peers\n" - " -v Set the max number of active torrents\n" + " -v Set the max number of active downloads\n" + " -^ Set the max number of active seeds\n" " -y Disable TCP connections (disable outgoing TCP and reject\n" " incoming TCP connections)\n" " -q automatically quit the client after of refreshes\n" @@ -1128,10 +1129,12 @@ int main(int argc, char* argv[]) case 'I': outgoing_interface = arg; break; case 'N': start_upnp = false; --i; break; case 'Y': settings.ignore_limits_on_local_network = false; --i; break; - case 'v': - settings.active_limit = atoi(arg); - settings.active_downloads = atoi(arg) / 2; - settings.active_seeds = atoi(arg) / 2; + case 'v': settings.active_downloads = atoi(arg); + settings.active_limit = (std::max)(atoi(arg) * 2, settings.active_limit); + break; + case '^': + settings.active_seeds = atoi(arg); + settings.active_limit = (std::max)(atoi(arg) * 2, settings.active_limit); break; case 'q': loop_limit = atoi(arg); break; }