This commit is contained in:
Ben Wilson
2023-07-30 19:33:02 -04:00
parent e38f4e1edc
commit 432f5c4325
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ export class AppController {
const chartData = await this.clientStatisticsService.getChartDataForSite();
await this.cacheManager.set(CACHE_KEY, chartData, 600);
//5 min
await this.cacheManager.set(CACHE_KEY, chartData, 5 * 60 * 1000);
return {
chartData,
+1 -1
View File
@@ -58,7 +58,7 @@ export class StratumV1ClientStatistics {
const targetDifficulty = difficultyPerSecond * TARGET_SUBMISSION_PER_SECOND;
if (clientDifficulty << 1 < targetDifficulty || clientDifficulty >> 1 > targetDifficulty) {
if ((clientDifficulty * 2) < targetDifficulty || (clientDifficulty / 2) > targetDifficulty) {
return this.nearestPowerOfTwo(targetDifficulty)
}