This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@ -10,7 +10,7 @@ import { LessThan } from 'typeorm';
export default function() {
async function tick() {
await AttestationChallenges.delete({
createdAt: LessThan(new Date(new Date().getTime() - 5 * 60 * 1000))
createdAt: LessThan(new Date(new Date().getTime() - 5 * 60 * 1000)),
});
}

View File

@ -35,13 +35,13 @@ export default function() {
activeSincePrevTick: activeDeliverJobs,
active: deliverJobCounts.active,
waiting: deliverJobCounts.waiting,
delayed: deliverJobCounts.delayed
delayed: deliverJobCounts.delayed,
},
inbox: {
activeSincePrevTick: activeInboxJobs,
active: inboxJobCounts.active,
waiting: inboxJobCounts.waiting,
delayed: inboxJobCounts.delayed
delayed: inboxJobCounts.delayed,
},
};

View File

@ -38,7 +38,7 @@ export default function() {
fs: {
r: round(Math.max(0, fsStats.rIO_sec)),
w: round(Math.max(0, fsStats.wIO_sec)),
}
},
};
ev.emit('serverStats', stats);
log.unshift(stats);