diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts index a324592..e31c70e 100644 --- a/src/app/components/dashboard/dashboard.component.ts +++ b/src/app/components/dashboard/dashboard.component.ts @@ -136,7 +136,7 @@ export class DashboardComponent { public getTotalHashRate(name: string, workers: any[]) { const workersByName = workers.filter(w => w.name == name); const sum = workersByName.reduce((pre, cur, idx, arr) => { - return pre += cur.hashRate; + return pre += Math.floor(cur.hashRate); }, 0); return Math.floor(sum); }