Show avg block heath in pool ranking pie chart

This commit is contained in:
nymkappa
2023-02-20 17:47:45 +09:00
parent 6b1c1e7cda
commit 3e4d27165a
5 changed files with 23 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ class Mining {
rank: rank++,
emptyBlocks: emptyBlocksCount.length > 0 ? emptyBlocksCount[0]['count'] : 0,
slug: poolInfo.slug,
avgMatchRate: Math.round(100 * poolInfo.avgMatchRate) / 100,
avgMatchRate: poolInfo.avgMatchRate !== null ? Math.round(100 * poolInfo.avgMatchRate) / 100 : null,
};
poolsStats.push(poolStat);
});