attempt to shrink huge things
This commit is contained in:
parent
4ce75a22ae
commit
d64b0714e9
1 changed files with 3 additions and 0 deletions
3
site.js
3
site.js
|
@ -200,6 +200,9 @@ async function siteCollector(user, path, site, useLimit, data2) {
|
|||
console.log(`User ${user} has ${i} pages calculated`);
|
||||
}
|
||||
out = out.concat(...users);
|
||||
if (useLimit) {
|
||||
out.length = Math.min(out.length,pageLimit * 40);
|
||||
}
|
||||
|
||||
if (!data2[user]) data2[user] = { following: [], followers: [] };
|
||||
data2[user][path] = out;
|
||||
|
|
Loading…
Reference in a new issue