From 8812f311626b92422d3149bf99732092486c5b8c Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Mon, 13 Nov 2017 15:30:23 +0100
Subject: [PATCH] #1197 Make sure that only once each physical core is used
 (for Hyperthreading)

---
 app/modules/prover/lib/engine.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/modules/prover/lib/engine.ts b/app/modules/prover/lib/engine.ts
index efbf0f476..352de59c7 100644
--- a/app/modules/prover/lib/engine.ts
+++ b/app/modules/prover/lib/engine.ts
@@ -38,7 +38,7 @@ export class PowEngine {
     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
+      stuff.newPoW.conf.nbCores /= 2; // Make sure that only once each physical core is used (for Hyperthreading).
     }
     return await this.cluster.proveByWorkers(stuff)
   }
-- 
GitLab