mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
don't calculate hashrate for 1 min
This commit is contained in:
@@ -99,8 +99,8 @@ export class StratumV1ClientStatistics {
|
||||
});
|
||||
}
|
||||
|
||||
if(this.shares > 0) {
|
||||
const time = new Date().getTime() - this.previousTimeSlotTime.getTime();
|
||||
if(this.shares > 0 && time > 60000) {
|
||||
this.hashRate = ((this.previousShares + this.shares) * 4294967296) / (time / 1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user