Skip to content

Commit

Permalink
Merge pull request #264 from azaryc2s/master
Browse files Browse the repository at this point in the history
Fixed the timestamp calculation in seconds
  • Loading branch information
Snipa22 committed Jan 19, 2018
2 parents 4bed868 + 3827227 commit 1361761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pool.js
Expand Up @@ -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;
Expand Down

0 comments on commit 1361761

Please sign in to comment.