This commit is contained in:
Ben Wilson
2024-02-17 20:12:37 -05:00
parent aab69b65fc
commit 9d4c3ad35e
+1
View File
@@ -67,6 +67,7 @@ export class StratumV1ClientStatistics {
this.shares = 0; this.shares = 0;
this.acceptedCount = 0; this.acceptedCount = 0;
this.currentTimeSlot = timeSlot; this.currentTimeSlot = timeSlot;
this.lastSave = new Date().getTime();
} else if ((date.getTime() - 60 * 1000) > this.lastSave) { } else if ((date.getTime() - 60 * 1000) > this.lastSave) {
await this.clientStatisticsService.update({ await this.clientStatisticsService.update({
time: this.currentTimeSlot, time: this.currentTimeSlot,