diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts index e34da12..0a2c59c 100644 --- a/src/app/components/dashboard/dashboard.component.ts +++ b/src/app/components/dashboard/dashboard.component.ts @@ -135,7 +135,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); }