forked from FoundKeyGang/FoundKey
Fix #2229
This commit is contained in:
parent
78563ef9a0
commit
9ccf9a2496
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ export default function() {
|
||||||
p.on('message', stats => {
|
p.on('message', stats => {
|
||||||
ev.emit('notesStats', stats);
|
ev.emit('notesStats', stats);
|
||||||
log.push(stats);
|
log.push(stats);
|
||||||
if (log.length > 100) log.pop();
|
if (log.length > 100) log.shift();
|
||||||
});
|
});
|
||||||
|
|
||||||
ev.on('requestNotesStatsLog', id => {
|
ev.on('requestNotesStatsLog', id => {
|
||||||
|
|
|
@ -37,7 +37,7 @@ export default function() {
|
||||||
};
|
};
|
||||||
ev.emit('serverStats', stats);
|
ev.emit('serverStats', stats);
|
||||||
log.push(stats);
|
log.push(stats);
|
||||||
if (log.length > 50) log.pop();
|
if (log.length > 50) log.shift();
|
||||||
}
|
}
|
||||||
|
|
||||||
tick();
|
tick();
|
||||||
|
|
Loading…
Reference in a new issue