fix pool info

This commit is contained in:
Ben Wilson
2024-02-17 16:27:37 -05:00
parent 87508bfb69
commit aefb180fb4
2 changed files with 4 additions and 4 deletions
@@ -19,9 +19,9 @@ export class UserAgentReportView {
@ViewColumn()
userAgent: string;
@ViewColumn()
count: number;
count: string;
@ViewColumn()
bestDifficulty: number;
@ViewColumn()
totalHashRate: number;
totalHashRate: string;
}
+2 -2
View File
@@ -69,8 +69,8 @@ export class AppController {
const userAgents = await this.userAgentReportService.getReport();
const totalHashRate = userAgents.reduce((acc, userAgent) => acc + userAgent.totalHashRate, 0);
const totalMiners = userAgents.reduce((acc, userAgent) => acc + userAgent.count, 0);
const totalHashRate = userAgents.reduce((acc, userAgent) => acc + parseFloat(userAgent.totalHashRate), 0);
const totalMiners = userAgents.reduce((acc, userAgent) => acc + parseFloat(userAgent.count), 0);
const blockHeight = (await firstValueFrom(this.bitcoinRpcService.newBlock$)).blocks;
const blocksFound = await this.blocksService.getFoundBlocks();