Fixed the timestamp calculation in seconds

This commit is contained in:
azaryc2s
2018-01-10 14:12:18 +01:00
parent 15272af1e0
commit 38272271c8
+1 -1
View File
@@ -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;