Skip to content
Snippets Groups Projects
Unverified Commit 0ac6978e authored by Éloïs's avatar Éloïs
Browse files

[fix] #1197

parent f58c7c75
No related branches found
No related tags found
2 merge requests!1220Stable/ws2p v1.1 trymerge,!1208Stable/ws2p v1.1
......@@ -35,8 +35,10 @@ export class PowEngine {
await this.cluster.cancelWork()
}
if (os.arch().match(/arm/)) {
stuff.newPoW.conf.cpu /= 2; // Don't know exactly why is ARM so much saturated by PoW, so let's divide by 2
const cpus = os.cpus()
if (os.arch().match(/arm/) || cpus[0].model.match(/Atom/)) {
stuff.newPoW.conf.cpu /= 2; // Don't know exactly why is ARM and Atom so much saturated by PoW, so let's divide by 2
}
return await this.cluster.proveByWorkers(stuff)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment