mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-03-27 02:01:42 +01:00
formatting
This commit is contained in:
parent
b9337ae636
commit
48516e468e
@ -15,8 +15,8 @@
|
||||
<tr [routerLink]="[worker.id]">
|
||||
<td>{{worker.name}}</td>
|
||||
<td>{{worker.id}}</td>
|
||||
<td>{{worker.hashRate}}</td>
|
||||
<td>{{worker.bestDifficulty}}</td>
|
||||
<td>{{worker.hashRate}} Gh/s</td>
|
||||
<td>{{worker.bestDifficulty | numberSuffix}}</td>
|
||||
</tr>
|
||||
</ng-template>
|
||||
</p-table>
|
||||
|
@ -30,7 +30,7 @@ export class WorkerComponent {
|
||||
this.chartData$ = this.workerInfo$.pipe(
|
||||
map((workerInfo: any) => {
|
||||
|
||||
const GROUP_SIZE = 20;
|
||||
const GROUP_SIZE = 60;
|
||||
const slice = workerInfo.hashData.length % GROUP_SIZE == 0 ? workerInfo.hashData : workerInfo.hashData.slice(0, workerInfo.hashData.length - workerInfo.hashData.length % GROUP_SIZE)
|
||||
const reducedData = ((slice as any[])
|
||||
.reduce((pre, cur, idx, arr) => {
|
||||
@ -105,7 +105,7 @@ export class WorkerComponent {
|
||||
y: {
|
||||
ticks: {
|
||||
color: textColorSecondary,
|
||||
callback: (value: number) => value + 'GH/s',
|
||||
callback: (value: number) => value + ' GH/s',
|
||||
},
|
||||
grid: {
|
||||
color: surfaceBorder,
|
||||
|
Loading…
x
Reference in New Issue
Block a user