don't calculate hashrate for 1 min

This commit is contained in:
Benjamin Wilson 2025-02-27 12:15:20 -05:00
parent 9b5402f1b0
commit b44f09848e

View File

@ -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);
}
}