fix parsing of pixellog
This commit is contained in:
parent
ae878d4518
commit
f43b786f31
|
@ -131,21 +131,22 @@ export async function getSummaryFromArea(
|
||||||
const ipInfo = ip2Info.get(ip);
|
const ipInfo = ip2Info.get(ip);
|
||||||
if (!ipInfo) {
|
if (!ipInfo) {
|
||||||
row.push('N/A', 'xx', 'N/A', 'N/A', 'N/A');
|
row.push('N/A', 'xx', 'N/A', 'N/A', 'N/A');
|
||||||
}
|
} else {
|
||||||
let { pcheck } = ipInfo;
|
let { pcheck } = ipInfo;
|
||||||
if (pcheck) {
|
if (pcheck) {
|
||||||
const seperator = pcheck.indexOf(',');
|
const seperator = pcheck.indexOf(',');
|
||||||
if (seperator !== -1) {
|
if (seperator !== -1) {
|
||||||
pcheck = pcheck.slice(0, seperator);
|
pcheck = pcheck.slice(0, seperator);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
row.push(
|
||||||
|
ipInfo.uuid || 'N/A',
|
||||||
|
ipInfo.country || 'xx',
|
||||||
|
ipInfo.cidr || 'N/A',
|
||||||
|
ipInfo.org || 'N/A',
|
||||||
|
pcheck || 'N/A',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
row.push(
|
|
||||||
ipInfo.uuid || 'N/A',
|
|
||||||
ipInfo.country || 'xx',
|
|
||||||
ipInfo.cidr || 'N/A',
|
|
||||||
ipInfo.org || 'N/A',
|
|
||||||
pcheck || 'N/A',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (printUsers) {
|
if (printUsers) {
|
||||||
const userMd = (uid && uid2Name.has(uid))
|
const userMd = (uid && uid2Name.has(uid))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user