mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
other filtering
This commit is contained in:
@@ -53,8 +53,8 @@ export class AppController {
|
|||||||
totalHashRate: 0
|
totalHashRate: 0
|
||||||
};
|
};
|
||||||
const userAgents: UserAgentReportView[] = (await this.userAgentReportService.getReport()).reduce((pre, cur, idx, arr) => {
|
const userAgents: UserAgentReportView[] = (await this.userAgentReportService.getReport()).reduce((pre, cur, idx, arr) => {
|
||||||
// If less than 1Th/s and less than 100 devices, add to 'other'
|
// If less than 10Th/s and less than 100 devices, add to 'other'
|
||||||
if (parseInt(cur.totalHashRate) < 1000000000000 && parseInt(cur.count) < 200) {
|
if (parseInt(cur.totalHashRate) < 10000000000000 && parseInt(cur.count) < 200) {
|
||||||
other.totalHashRate += parseFloat(cur.totalHashRate);
|
other.totalHashRate += parseFloat(cur.totalHashRate);
|
||||||
other.count += parseInt(cur.count);
|
other.count += parseInt(cur.count);
|
||||||
if (other.bestDifficulty < cur.bestDifficulty) {
|
if (other.bestDifficulty < cur.bestDifficulty) {
|
||||||
|
|||||||
Reference in New Issue
Block a user