Browse Source

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

	Change the default value of --metalink-servers option from `5' 
to `1'.
	* src/HelpItemFactory.cc
	* src/option_processing.cc
	* src/usage_text.h
Tatsuhiro Tsujikawa 17 năm trước cách đây
mục cha
commit
6952eef7b6
4 tập tin đã thay đổi với 10 bổ sung4 xóa
  1. 7 0
      ChangeLog
  2. 1 1
      src/HelpItemFactory.cc
  3. 1 1
      src/option_processing.cc
  4. 1 2
      src/usage_text.h

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2008-05-05  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Change the default value of --metalink-servers option from `5' to `1'.
+	* src/HelpItemFactory.cc
+	* src/option_processing.cc
+	* src/usage_text.h
+	
 2008-05-05  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Reimplemented transparent metalink using Accept request header.

+ 1 - 1
src/HelpItemFactory.cc

@@ -383,7 +383,7 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
     tc->addItem(item);
   }
   {
-    HelpItemHandle item(new HelpItem(PREF_METALINK_SERVERS, TEXT_METALINK_SERVERS));
+    HelpItemHandle item(new HelpItem(PREF_METALINK_SERVERS, TEXT_METALINK_SERVERS, op->get(PREF_METALINK_SERVERS)));
     item->addTag(TAG_METALINK);
     tc->addItem(item);
   }

+ 1 - 1
src/option_processing.cc

@@ -79,7 +79,7 @@ Option* createDefaultOption()
   op->put(PREF_DAEMON, V_FALSE);
   op->put(PREF_SEGMENT_SIZE, Util::itos((int32_t)(1024*1024)));
   op->put(PREF_LISTEN_PORT, "6881-6999");
-  op->put(PREF_METALINK_SERVERS, "5");
+  op->put(PREF_METALINK_SERVERS, "1");
   op->put(PREF_FOLLOW_TORRENT,
 #ifdef ENABLE_BITTORRENT
 	  V_TRUE

+ 1 - 2
src/usage_text.h

@@ -281,8 +281,7 @@ _(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"
 _(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
 #define TEXT_METALINK_SERVERS \
 _(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
-  "                              simultaneously.\n"\
-  "                              Default: 5")
+  "                              simultaneously.")
 #define TEXT_METALINK_VERSION \
 _(" --metalink-version=VERSION   The version of the file to download.")
 #define TEXT_METALINK_LANGUAGE \