hashrate is a number not a string

This commit is contained in:
Mononaut
2024-05-30 21:24:33 +00:00
parent 833418514e
commit e11ce14f81
4 changed files with 10 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ export class PoolRankingComponent implements OnInit {
const i = pool.blockCount.toString();
if (this.miningWindowPreference === '24h') {
return `<b style="color: white">${pool.name} (${pool.share}%)</b><br>` +
pool.lastEstimatedHashrate.toString() + ' ' + miningStats.miningUnits.hashrateUnit +
pool.lastEstimatedHashrate.toFixed(2) + ' ' + miningStats.miningUnits.hashrateUnit +
`<br>` + $localize`${ i }:INTERPOLATION: blocks`;
} else {
return `<b style="color: white">${pool.name} (${pool.share}%)</b><br>` +
@@ -291,7 +291,7 @@ export class PoolRankingComponent implements OnInit {
*/
getEmptyMiningStat(): MiningStats {
return {
lastEstimatedHashrate: 'Error',
lastEstimatedHashrate: 0,
blockCount: 0,
totalEmptyBlock: 0,
totalEmptyBlockRatio: '',