Merge pull request #264 from azaryc2s/master

Fixed the timestamp calculation in seconds
This commit is contained in:
Snipa22
2018-01-19 15:51:05 -08:00
committed by GitHub
+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;