Przeglądaj źródła

2007-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Now prealloc is the default value for --file-allocation option.
	* src/main.cc
	* src/aria2c.1.txt
Tatsuhiro Tsujikawa 18 lat temu
rodzic
commit
ffa0818f59
3 zmienionych plików z 9 dodań i 3 usunięć
  1. 6 0
      ChangeLog
  2. 1 1
      doc/aria2c.1.txt
  3. 2 2
      src/main.cc

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2007-10-26  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Now prealloc is the default value for --file-allocation option.
+	* src/main.cc
+	* src/aria2c.1.txt
+	
 2007-10-15  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	* src/MetalinkRequestInfo.cc: When no file entry is found in a

+ 1 - 1
doc/aria2c.1.txt

@@ -128,7 +128,7 @@ OPTIONS
                               file space. 'prealloc' pre-allocates file space
                               before download begins. This may take some time
                               depending on the size of the file.
-                              Default: none
+                              Default: prealloc
 
  --allow-overwrite=true|false::
   If false, aria2 doesn't download a file which

+ 2 - 2
src/main.cc

@@ -191,7 +191,7 @@ void showUsage() {
 	    "                              file space. 'prealloc' pre-allocates file space\n"
 	    "                              before download begins. This may take some time\n"
 	    "                              depending on the size of the file.\n"
-	    "                              Default: none") << endl;
+	    "                              Default: prealloc") << endl;
   cout << _(" --allow-overwrite=true|false If false, aria2 doesn't download a file which\n"
   		"                              already exists but the corresponding .aria2 file\n"
   		"                              doesn't exist.\n"
@@ -442,7 +442,7 @@ int main(int argc, char* argv[]) {
   op->put(PREF_MAX_UPLOAD_LIMIT, "0");
   op->put(PREF_STARTUP_IDLE_TIME, "10");
   op->put(PREF_TRACKER_MAX_TRIES, "10");
-  op->put(PREF_FILE_ALLOCATION, V_NONE);
+  op->put(PREF_FILE_ALLOCATION, V_PREALLOC);
   op->put(PREF_ALLOW_OVERWRITE, V_FALSE);
   op->put(PREF_REALTIME_CHUNK_CHECKSUM, V_TRUE);
   op->put(PREF_CHECK_INTEGRITY, V_FALSE);