mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-03 12:04:04 +01: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
|
// VarDiff System
|
||||||
this.shareTimeBuffer = global.support.circularBuffer(8);
|
this.shareTimeBuffer = global.support.circularBuffer(8);
|
||||||
this.shareTimeBuffer.enq(global.config.pool.targetTime);
|
this.shareTimeBuffer.enq(global.config.pool.targetTime);
|
||||||
this.lastShareTime = Date.now() / 1000 || 0;
|
this.lastShareTime = Math.floor(Date.now() / 1000);
|
||||||
|
|
||||||
this.validShares = 0;
|
this.validShares = 0;
|
||||||
this.invalidShares = 0;
|
this.invalidShares = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user