--split option is now available in aria2.changeOption.

--split option is now available in aria2.changeOption if a download is
waiting/paused in queue.
pull/2/head
Tatsuhiro Tsujikawa 2011-10-30 19:23:27 +09:00
parent 1d9e673a68
commit fc7af71aa8
2 changed files with 4 additions and 0 deletions

View File

@ -946,6 +946,7 @@ OptionHandlerFactory::createOptionHandlers()
op->addTag(TAG_HTTP);
op->setInitialOption(true);
op->setChangeGlobalOption(true);
op->setChangeOptionForReserved(true);
handlers.push_back(op);
}
{

View File

@ -1134,6 +1134,9 @@ void changeOption
sgl.normalize();
dctx->setFileFilter(sgl);
}
if(option.defined(PREF_SPLIT)) {
group->setNumConcurrentCommand(option.getAsInt(PREF_SPLIT));
}
if(option.defined(PREF_MAX_DOWNLOAD_LIMIT)) {
group->setMaxDownloadSpeedLimit
(option.getAsInt(PREF_MAX_DOWNLOAD_LIMIT));