mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-03-27 02:01:42 +01:00
Merge branch 'master' of https://github.com/benjamin-wilson/public-pool-ui
This commit is contained in:
commit
4437dd4c63
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user