From 9913254a5c3d66889a9a590485fbd511756c2eb9 Mon Sep 17 00:00:00 2001 From: ncois Date: Wed, 29 Nov 2023 11:16:48 +0100 Subject: [PATCH] Difficulty value: remove rounding --- .../app/components/hashrate-chart/hashrate-chart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts index a079a4e71..62c6961ce 100644 --- a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts +++ b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts @@ -259,7 +259,7 @@ export class HashrateChartComponent implements OnInit { difficultyString = `${tick.marker} ${tick.seriesName}: No data
`; } else { difficultyPowerOfTen = selectPowerOfTen(tick.data[1]); - difficulty = Math.round(tick.data[1] / difficultyPowerOfTen.divider); + difficulty = tick.data[1] / difficultyPowerOfTen.divider; difficultyString = `${tick.marker} ${tick.seriesName}: ${formatNumber(difficulty, this.locale, '1.2-2')} ${difficultyPowerOfTen.unit}
`; } } else if (tick.seriesIndex === 2) { // Hashrate MA