This commit is contained in:
Ben Wilson 2023-08-01 22:38:28 -04:00
commit 4437dd4c63

View File

@ -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);
}