From 5bed29e79a555bb220bb25e0e8d6ec94ce200bf6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 9 May 2008 14:52:25 +0000 Subject: [PATCH] 2008-05-09 Tatsuhiro Tsujikawa Changed the default value of -j option to 1. * src/HelpItemFactory.cc * src/option_processing.cc * src/usage_text.h --- ChangeLog | 7 +++++++ src/HelpItemFactory.cc | 4 ++-- src/option_processing.cc | 2 +- src/usage_text.h | 4 +--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d837d215..47bc6166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-09 Tatsuhiro Tsujikawa + + Changed the default value of -j option to 1. + * src/HelpItemFactory.cc + * src/option_processing.cc + * src/usage_text.h + 2008-05-09 Tatsuhiro Tsujikawa Added the ability to reuse connection in FTP and it is enabled by diff --git a/src/HelpItemFactory.cc b/src/HelpItemFactory.cc index 7fb2b33c..297dae73 100644 --- a/src/HelpItemFactory.cc +++ b/src/HelpItemFactory.cc @@ -266,8 +266,8 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op) tc->addItem(item); } { - HelpItemHandle item(new HelpItem(PREF_MAX_CONCURRENT_DOWNLOADS, TEXT_MAX_CONCURRENT_DOWNLOADS)); - item->addTag(TAG_ADVANCED); + HelpItemHandle item(new HelpItem(PREF_MAX_CONCURRENT_DOWNLOADS, TEXT_MAX_CONCURRENT_DOWNLOADS, op->get(PREF_MAX_CONCURRENT_DOWNLOADS))); + item->addTag(TAG_BASIC); tc->addItem(item); } { diff --git a/src/option_processing.cc b/src/option_processing.cc index 6240b0d2..bd10cab4 100644 --- a/src/option_processing.cc +++ b/src/option_processing.cc @@ -123,7 +123,7 @@ Option* createDefaultOption() op->put(PREF_CONTINUE, V_FALSE); op->put(PREF_USER_AGENT, "aria2"); op->put(PREF_NO_NETRC, V_FALSE); - op->put(PREF_MAX_CONCURRENT_DOWNLOADS, "5"); + op->put(PREF_MAX_CONCURRENT_DOWNLOADS, "1"); op->put(PREF_DIRECT_DOWNLOAD_TIMEOUT, "300"); op->put(PREF_FORCE_SEQUENTIAL, V_FALSE); op->put(PREF_AUTO_FILE_RENAMING, V_TRUE); diff --git a/src/usage_text.h b/src/usage_text.h index 8397745a..89564f55 100644 --- a/src/usage_text.h +++ b/src/usage_text.h @@ -188,9 +188,7 @@ _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n " URIs on a single line using the TAB character.\n"\ " Reads input from stdin when '-' is specified.") #define TEXT_MAX_CONCURRENT_DOWNLOADS \ -_(" -j, --max-concurrent-downloads=N Set maximum number of concurrent downloads.\n"\ - " It should be used with the -i option.\n"\ - " Default: 5") +_(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads.") #define TEXT_LOAD_COOKIES \ _(" --load-cookies=FILE Load cookies from FILE. The format of FILE is\n"\ " the same used by Netscape and Mozilla.")