Pool chart: show power of ten of hashrate on desktop

This commit is contained in:
ncois 2023-12-01 12:57:30 +01:00
parent 62c9a88235
commit 0a70273456
No known key found for this signature in database
GPG Key ID: 233CF3150A89BED8

View File

@ -163,10 +163,8 @@ export class PoolComponent implements OnInit {
let hashratePowerOfTen: any = selectPowerOfTen(1);
let hashrate = ticks[0].data[1];
if (this.isMobile()) {
hashratePowerOfTen = selectPowerOfTen(ticks[0].data[1]);
hashrate = Math.round(ticks[0].data[1] / hashratePowerOfTen.divider);
}
hashratePowerOfTen = selectPowerOfTen(ticks[0].data[1]);
hashrate = Math.round(ticks[0].data[1] / hashratePowerOfTen.divider);
return `
<b style="color: white; margin-left: 18px">${ticks[0].axisValueLabel}</b><br>