mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-26 17:51:51 +01:00
don't calculate hashrate for 1 min
This commit is contained in:
parent
9b5402f1b0
commit
b44f09848e
@ -99,8 +99,8 @@ export class StratumV1ClientStatistics {
|
||||
});
|
||||
}
|
||||
|
||||
if(this.shares > 0) {
|
||||
const time = new Date().getTime() - this.previousTimeSlotTime.getTime();
|
||||
const time = new Date().getTime() - this.previousTimeSlotTime.getTime();
|
||||
if(this.shares > 0 && time > 60000) {
|
||||
this.hashRate = ((this.previousShares + this.shares) * 4294967296) / (time / 1000);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user