Преглед на файлове

Change defaults: Enable 16M disk cache by default.

Nils Maier преди 12 години
родител
ревизия
4be7ec380f
променени са 4 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      doc/manual-src/en/aria2c.rst
  2. 1 1
      doc/manual-src/pt/aria2c.rst
  3. 1 1
      doc/manual-src/ru/aria2c.rst
  4. 1 1
      src/OptionHandlerFactory.cc

+ 1 - 1
doc/manual-src/en/aria2c.rst

@@ -1089,7 +1089,7 @@ Advanced Options
   unit and it is reordered by the offset of the file.  If hash
   checking is involved and the data are cached in memory, we don't
   need to read them from the disk.  SIZE can include ``K`` or ``M``
-  (1K = 1024, 1M = 1024K). Default: ``0``
+  (1K = 1024, 1M = 1024K). Default: ``16M``
 
 .. option:: --download-result=<OPT>
 

+ 1 - 1
doc/manual-src/pt/aria2c.rst

@@ -1154,7 +1154,7 @@ Opções Avançadas
   unit and it is reordered by the offset of the file.  If hash
   checking is involved and the data are cached in memory, we don't
   need to read them from the disk.  SIZE can include ``K`` or ``M``
-  (1K = 1024, 1M = 1024K). Default: ``0``
+  (1K = 1024, 1M = 1024K). Default: ``16M``
 
 .. option:: --download-result=<OPT>
 

+ 1 - 1
doc/manual-src/ru/aria2c.rst

@@ -1171,7 +1171,7 @@ FTP, BitTorrent и Metalink. Для загрузки файла, aria2 може
   т.к. данные записываются большими блоками, и они распределяются через
   смещение в файле. Если задействована хэш-проверка и данные кэшируются
   в памяти, то мы не должны читать их с диска. SIZE может включать букву
-  ``K`` или ``M`` (1K = 1024, 1M = 1024K). По умолчанию: ``0``
+  ``K`` или ``M`` (1K = 1024, 1M = 1024K). По умолчанию: ``16M``
 
 .. option:: --download-result=<OPT>
 

+ 1 - 1
src/OptionHandlerFactory.cc

@@ -210,7 +210,7 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
     OptionHandler* op(new UnitNumberOptionHandler
                       (PREF_DISK_CACHE,
                        TEXT_DISK_CACHE,
-                       "0",
+                       "16M",
                        0));
     op->addTag(TAG_ADVANCED);
     handlers.push_back(op);