Jelajahi Sumber

2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Changed the default value of -j option to 1.
	* src/HelpItemFactory.cc
	* src/option_processing.cc
	* src/usage_text.h
Tatsuhiro Tsujikawa 17 tahun lalu
induk
melakukan
5bed29e79a
4 mengubah file dengan 11 tambahan dan 6 penghapusan
  1. 7 0
      ChangeLog
  2. 2 2
      src/HelpItemFactory.cc
  3. 1 1
      src/option_processing.cc
  4. 1 3
      src/usage_text.h

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2008-05-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	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  <tujikawa at rednoah dot com>
 
 	Added the ability to reuse connection in FTP and it is enabled by

+ 2 - 2
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);
   }
   {

+ 1 - 1
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);

+ 1 - 3
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.")