From 38272271c83efcf8d7fd8d6cce3b55018ef4d376 Mon Sep 17 00:00:00 2001 From: azaryc2s Date: Wed, 10 Jan 2018 14:12:18 +0100 Subject: [PATCH] Fixed the timestamp calculation in seconds --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index c61c911..705e7e5 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -333,7 +333,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer // VarDiff System this.shareTimeBuffer = global.support.circularBuffer(8); this.shareTimeBuffer.enq(global.config.pool.targetTime); - this.lastShareTime = Date.now() / 1000 || 0; + this.lastShareTime = Math.floor(Date.now() / 1000); this.validShares = 0; this.invalidShares = 0;