other filtering

This commit is contained in:
Ben
2025-04-29 15:31:28 -04:00
parent d9c89347e1
commit cdf6eb807b
+2 -2
View File
@@ -53,8 +53,8 @@ export class AppController {
totalHashRate: 0
};
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 (parseInt(cur.totalHashRate) < 1000000000000 && parseInt(cur.count) < 200) {
// If less than 10Th/s and less than 100 devices, add to 'other'
if (parseInt(cur.totalHashRate) < 10000000000000 && parseInt(cur.count) < 200) {
other.totalHashRate += parseFloat(cur.totalHashRate);
other.count += parseInt(cur.count);
if (other.bestDifficulty < cur.bestDifficulty) {