Skip to content
Snippets Groups Projects
Commit 4d493596 authored by David Sehnal's avatar David Sehnal
Browse files

model-server: fix preprocess processor count when using cmd option

parent c69cbf42
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ if (Object.keys(cmdArgs).filter(k => (cmdArgs as any)[k] !== null).length === 0
}
let entries: PreprocessEntry[] = []
let config: PreprocessConfig = { numProcesses: 1, customProperties: void 0 }
let config: PreprocessConfig = { numProcesses: cmdArgs.folderIn ? +(cmdArgs.folderNumProcesses || 1) : 1, customProperties: void 0 }
if (cmdArgs.input) entries.push({ source: cmdArgs.input, cif: cmdArgs.outCIF, bcif: cmdArgs.outBCIF });
// else if (cmdArgs.bulk) runBulk(cmdArgs.bulk);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment