Difficulty value: remove rounding

This commit is contained in:
ncois 2023-11-29 11:16:48 +01:00
parent fbb4ba39c2
commit 9913254a5c
No known key found for this signature in database
GPG Key ID: 233CF3150A89BED8

View File

@ -259,7 +259,7 @@ export class HashrateChartComponent implements OnInit {
difficultyString = `${tick.marker} ${tick.seriesName}: No data<br>`;
} 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}<br>`;
}
} else if (tick.seriesIndex === 2) { // Hashrate MA