diff --git a/src/app/components/dashboard/dashboard.component.html b/src/app/components/dashboard/dashboard.component.html index f56b5e6..9f1bf6f 100644 --- a/src/app/components/dashboard/dashboard.component.html +++ b/src/app/components/dashboard/dashboard.component.html @@ -15,8 +15,8 @@ {{worker.name}} {{worker.id}} - {{worker.hashRate}} - {{worker.bestDifficulty}} + {{worker.hashRate}} Gh/s + {{worker.bestDifficulty | numberSuffix}} diff --git a/src/app/components/worker/worker.component.ts b/src/app/components/worker/worker.component.ts index 3e2a3ce..f0e817f 100644 --- a/src/app/components/worker/worker.component.ts +++ b/src/app/components/worker/worker.component.ts @@ -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,