mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Fixed the timestamp calculation in seconds
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user