From 0ac6978e719e40d371b8e5e4c16ecf98e2af56b0 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Mon, 13 Nov 2017 14:27:01 +0100
Subject: [PATCH] [fix] #1197

---
 app/modules/prover/lib/engine.ts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/modules/prover/lib/engine.ts b/app/modules/prover/lib/engine.ts
index 116963e47..efbf0f476 100644
--- a/app/modules/prover/lib/engine.ts
+++ b/app/modules/prover/lib/engine.ts
@@ -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)
   }
-- 
GitLab