Unverified Commit a7a7e5fa authored by Éloïs's avatar Éloïs
Browse files

[fix) treat the case nbCores <= 0

parent 1fa1ae6d
......@@ -23,6 +23,8 @@ export const ProverDependency = {
}
if (conf.nbCores === null || conf.nbCores === undefined) {
conf.nbCores = Math.min(Constants.CORES_MAXIMUM_USE_IN_PARALLEL, require('os').cpus().length)
} else if (conf.nbCores <= 0) {
conf.nbCores = 1
}
if (conf.prefix === null || conf.prefix === undefined) {
conf.prefix = Constants.DEFAULT_PEER_ID;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment