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

[fix] #1197

parent f58c7c75
Branches
Tags
2 merge requests!1220Stable/ws2p v1.1 trymerge,!1208Stable/ws2p v1.1
...@@ -35,8 +35,10 @@ export class PowEngine { ...@@ -35,8 +35,10 @@ export class PowEngine {
await this.cluster.cancelWork() await this.cluster.cancelWork()
} }
if (os.arch().match(/arm/)) { const cpus = os.cpus()
stuff.newPoW.conf.cpu /= 2; // Don't know exactly why is ARM so much saturated by PoW, so let's divide by 2
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) 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