diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-09-27 21:48:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-09-27 21:48:41 +0900 |
| commit | 7e7aeac3ff12ecac15995c83cf51e66338d64447 (patch) | |
| tree | 4ac0eefe41e1c3712322f3997f4b21c79fecae8b /test/RpcMethodTest.cc | |
| parent | 05104ba177d792b74c6455516e063c4d9a5a8ebd (diff) | |
Added --piece-length option.
This option sets a piece length for HTTP/FTP downloads. This is the
boundary when aria2 splits a file. All splits occur at multiple of
this length. This option will be ignored in BitTorrent downloads. It
will be also ignored if Metalink file contains piece hashes.
Diffstat (limited to 'test/RpcMethodTest.cc')
| -rw-r--r-- | test/RpcMethodTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/RpcMethodTest.cc b/test/RpcMethodTest.cc index 3aa8067a..eeab4cc2 100644 --- a/test/RpcMethodTest.cc +++ b/test/RpcMethodTest.cc @@ -86,7 +86,7 @@ public: RequestGroup::resetGIDCounter(); option_.reset(new Option()); option_->put(PREF_DIR, A2_TEST_OUT_DIR"/aria2_RpcMethodTest"); - option_->put(PREF_SEGMENT_SIZE, "1048576"); + option_->put(PREF_PIECE_LENGTH, "1048576"); File(option_->get(PREF_DIR)).mkdirs(); e_.reset (new DownloadEngine(SharedHandle<EventPoll>(new SelectEventPoll()))); |
