From adeba27c6351997b3efd133984747c49c08a9550 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Wed, 23 Aug 2017 11:14:38 +0200
Subject: [PATCH] [fix] Proof-of-work CPU% changed dynamically was not taken
 into account

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

diff --git a/app/modules/prover/lib/powCluster.ts b/app/modules/prover/lib/powCluster.ts
index e61fe0377..1e1a6ad3d 100644
--- a/app/modules/prover/lib/powCluster.ts
+++ b/app/modules/prover/lib/powCluster.ts
@@ -118,7 +118,7 @@ export class Master {
 
   changeConf(conf:ConfDTO) {
     this.logger.info(`Changing conf to: ${JSON.stringify(conf)} on PoW cluster`)
-    this.conf.cpu = this.conf.cpu || conf.cpu
+    this.conf.cpu = conf.cpu || this.conf.cpu
     this.conf.prefix = this.conf.prefix || conf.prefix
     this.slaves.forEach(s => {
       s.worker.send({
-- 
GitLab